I have table which contains the rows that are dynamic from server side scripting(PHP) and also using Zend Framework . So each row will have hyperlink with id SOmevalue(Dynamic) now each row will have contextmenu (Jquery Plugin ) appended to each row by the below code.
$("#myTable td:first-child").contextMenu("myMenu1",{
bindings: {
'hdr': function(t) {
alert($("#Test0").attr("data-value1"));
alert($("#Test0").attr("data-value2"));
}
},
menuStyle: {
border: '1px solid #000'
}
});
So My Problem is how do i know on which row was context menu clicked and
suppose if i click on second row i want to get the value of that < a href>
value of that "test1" or "test2" or "test3" or "test4"
dynamically . i should not able to write "test1"or test2 son on