For example, I have many lines of data, each of which has an edit button with an edit-button class.
I have a click .live() handler for .edit-button elements.
In the dialog callback for one of the βbuttons,β I would like to pass the string as an argument.
In particular, I would like to get the parent ID attribute .edit-button tr (in the table).
Usually I can do something line by line:
var tr = $(element).parents("tr:first");
... to get the element tr .
How will this be achieved?
source share