Answers for "get closest element id jquery"

5

jquery closest

$( "li.item-a" )
  .closest( "ul" )
  .css( "background-color", "red" );
Posted by: Guest on February-20-2020
-1

get closest element id jquery

$(".isActive").click(function() {
    var div_id = $(this).closest('tr').find('.display_image').attr(id);
    // ...
});
Posted by: Guest on January-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language