I have a table with the following structure
My jquery looks like this:
$("table#Main > tbody > tr.Row").live("click", function (e) { RowClick($(this)); }); $(".EditRow").live("click", function (e) { EditRow($(this)); });
My problem is that if I press the .EditRow button and call the EditRow function, the RowClick function will be called immediately.
After doing some research on the site, I saw that others circumvented this problem using one of the following commands.
e.preventDefault(); e.stopPropagation();
I tried them on both functions in different combinations, but could not understand. Can someone tell me what I'm doing wrong?
Thanks! <3
source share