I am filling a list up dynamically from a database, the fill up works fine, but where I have no data the list item is empty. I tried to hide the empty rows, bot my code does nothing, where should I put it if it is correct? The div is filled in from the document ready function, and after the div that contains this one, shows on mouseclick.
if ($("#results").find('.list-group-item').length() == 0){
$(this).css('height','0px');
lengthis a property, not a function.