Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove the parent div from the child in jquery

$(this).closest('.parentClassname').remove();
 
PREVIOUS NEXT
Tagged: #remove #parent #div #child #jquery
ADD COMMENT
Topic
Name
5+2 =