---
title: "Removing DOM Elements Using Jquery."  
description: "Removing DOM Elements Using Jquery."  
author: "Anonymous User"  
published: 2016-03-27  
updated: 2016-03-28  
canonical: https://www.mindstick.com/forum/34082/removing-dom-elements-using-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# Removing DOM Elements Using Jquery.

How to Removing [DOM](https://www.mindstick.com/blog/304003/what-is-the-difference-between-virtual-dom-and-shadow-dom) [Elements Using Jquery](https://www.mindstick.com/forum/158688/how-can-you-dynamically-create-html-elements-using-jquery). Please Help me.

## Replies

### Reply by Anonymous User

the method remove( expr ) method removes all matched [elements](https://www.mindstick.com/forum/1440/wpf-button-with-multiple-text-elements) from the DOM.

```
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>   <title>The jQuery Example</title>      <script type = "text/javascript"          src = "http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>	      <script type = "text/javascript" language = "javascript">
          $(document).ready(function () {              $("p").click(function () {                  $(this).remove();              });          });
      </script>      <style>         .div{ margin:10px;padding:12px; border:2px solid #666; width:70px;}      </style></head><body>          <p class = "div" style = "background-color:green;">Hello</p>      <p class = "div" style = "background-color:yellow;">Hi</p>      <p class = "div" style = "background-color:red;">Call Back</p>  </body></html>
```

![Removing DOM Elements Using Jquery.](https://www.mindstick.com/mindstickforums/e20e9cea-fdf6-4897-9f2a-ee347866c757/images/eea71bc7-74a0-4060-8cbb-465cd19fbc93.png)


---

Original Source: https://www.mindstick.com/forum/34082/removing-dom-elements-using-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
