Skip to content

Remove an element from the DOM using jQuery

jQuery’s .remove() function lets you remove the matched element from the DOM:

<div class="container">
  <div class="a"></div>
  <div class="b"></div>


Be First to Comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.