Remove HTML Elements in jQuery:

If you want to remove any existing HTML element than in jQuery you have the facility to remove the elements.

There are two methods for removing the HTML elements that is supported by jQuery :

  • remove()
  • emplty()

The remove() method in jQuery:

The remove method in jQuery removes the selected HTML elements and also removes its all child elements.


The empty() method in jQuery:

The empty method in jQuery removes the child HTML elements of the selected HTML elements.



Leave a Reply

Your email address will not be published. Required fields are marked *