The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery: If ul has no li Reply To: Jquery: If ul has no li


Nice, but it would fail in the case of the given example markup due to the new lines being interpreted as a space;

< ul >

</ul >

<ul >
<li > some data
</li >
</ul >

The demo CSS way only works if the ul start and end tags are butt up to one another and on the same line;