So I have this div on my page:
<div id="valueTableBTS"></div>
This div gets filled with an html table dynamically. What I want to be able to do in JQuery is to check if this table has any empty cells, so I know if I need to keep calling my other method to fill it with any newly grabbed values.
How would I do that?
If I get you right, this should do it:
Demo: http://jsfiddle.net/p53Y8/
The
:emptyhelp selector will find nodes which have no children (including text nodes).