How to remove empty list item with jquery

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-04-15T09:27:49Z Indexed on 2010/04/15 9:33 UTC
Read the original article Hit count: 154

Filed under:
|
|

I have a list which is dynamically built, but there are empty list items which need removing.

<ul>
<li>www</li>
<li>www</li>
<li>www</li>
<li></li>
<li></li>
<li></li>
</ul>

How od i do this with jquery? Thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about remove