Jquery: Creating modal dialogs with overlay
Hi,
I am trying to use this http://flowplayer.org/tools/demos/overlay/modal-dialog.html, for my project inside the table. so on button click, i am calling this Modal dialog, it works fine as it is. but if user selects Yes, i need to perform some database action, and i am not able to find the row index of the clicked button, inside the JQuery function.
so in the following code-
var buttons = $("#yesno button").click(function(e) {
var yes = buttons.index(this) === 0;
triggers.eq(3).html("You clicked " + (yes ? "yes" : "no"));
});
where we have "triggers.eq(3) " --> i need to replace with "i" where i is the row index of the clicked button.
i am bit new to Jquery, so if anyone can help me here that would be great.
Thanks,