Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to target an element parent tag

// Parent
$(this).parent();
// Grand Parent
$(this).parent()->parent();
// you can add the name of the parent tag,id,class as a param
$(this).parent('div');
//Jerespy
 
PREVIOUS NEXT
Tagged: #target #element #parent #tag
ADD COMMENT
Topic
Name
6+9 =