Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get closest element id jquery

$(".isActive").click(function() {
    var div_id = $(this).closest('tr').find('.display_image').attr(id);
    // ...
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #closest #element #id #jquery
ADD COMMENT
Topic
Name
7+8 =