i would like to remove/hide a li based on the content inside it, is this easy to do?
eg. the code below: if span#type has no content then li.grouping should be removed or hidden.
<li class='grouping'><span class='desc'>Options:</span><br /><span id='type'></span></li>
It would seem to make more sense if
typewere aclass, rather than anid, as there should only be one element with a givenidon the page. In that case: