Remove Each Matching Element .remove()

.remove([selector])

e.g. $("div").remove(".className")

.remove() will remove each element in the matched set and everything inside it.

.remove() will remove the element itself and its inner contnet while .empty() will remove the element inner content only.
Example 1: $("div").remove() will remove all <div> and their content.
Before
<div>
  <b>A</b>
</div>

<div>B</div>

<b>C</b>
After
 // removed <div><b>A</b></div> 

 // removed <div>B</div> 

<b>C</b>
Example 2: $("div").remove(".a") will remove all <div> with class='a' and their content.
Before
<div class="a">A</div>
<div>B</div>
After
 // removed <div class='a'>A</div> 
<div>B</div>
jQuery manipulation removing .remove()