Jquery click event propagation
I have a table with click events bound to its rows ( <tr> ). There are <a> elements inside those rows with their own click events assigned. Problem is, when i click on the <a> element, it also fires the click event from the parent <tr> . I don't want this behavior; I just want to fire the <a> click event. Code: // Event row TR $("tr:not(:first)").click(function() { $(".window, .backFundo, .close").remove(); var position = $(this).offset().top; position = position < 0 ? 20 : position; $("body").append( $("<div></div>").addClass("backFundo") ); $("body").append( $("<div></div>").addClass("window