Sunday, 25 August 2013

How to select all empty p tag using jQuery?

How to select all empty p tag using jQuery?

How can I select all the empty tag using jQuery.
I want to select
<p></p>
<p style="display: block"></p>
<p> </p>
<p> </p>
<p>&nbsp;</p>
and not
<p>0</p>
<p>Test</p>

No comments:

Post a Comment