Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
jquery delete grand parent of clicked element
Pat
Programming language:
Javascript
2021-06-30 10:30:56
0
Q:
jquery delete grand parent of clicked element
Travis Bear
Code:
Javascript
2021-06-09 03:56:41
$(this).closest('.grand-parent-class-name').remove();
1
Tags
jquery
click
element
Related
jquery remove elemtns
remove required attribute jquery mvc
jquery: get selected option of the drop down list
how to remove event listener in jquery
how to remove a class jquery
jquery remove option from select by value
remove add event listener jquery
jquery on click remove parent div
jquery remove items from dropdownlist
how to remove attrivusre with jquery
jquery click on parent but not child
jquery removeattr()
how to remove the parent div from the child in jquery
error message remove after checkbox fill in jquery
You should use jQuery to remove your target4 element from your page.
New to Communities?
Join the community