Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery find parent

$('#thisid').closest('li');

// `closest()` is equivalent to (but performs better than)
$('#thisid').parents('li').eq(0);
$('#thisid').parents('li').first();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #find #parent
ADD COMMENT
Topic
Name
7+6 =