Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery closest

$( "li.item-a" )
  .closest( "ul" )
  .css( "background-color", "red" );
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #jquery #closest
ADD COMMENT
Topic
Name
3+2 =