Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery nearest

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