Remove all Inner Nodes of Each Matching Element .empty()

.empty()

e.g. $("div").empty()

.empty() will remove all inner content of each element in the matched set.

Example 1: $("div").empty() will remove all inner content of each <div>.
Before
<div>
  <b>A</b>
</div>

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

<div></div>  // removed B 
jQuery manipulation removing .empty()