I am using $().fadeOut() to fade items out in a list ( < li> < /li>). When the list is empty I wish to hide a parent object.
I plan on doing this by checking i
Simply use .length against the jQuery collection.
.length
var $elements = $('ul#myUlElement').children('li'); alert($elements.length)