If a ul has more than one li-element inside of it, something should happen, otherwise not!
ul
li
What am I doing wrong?
if ( $(\'
alert( "Size: " + $("li").size() );
or
alert( "Size: " + $("li").length );
You can find some examples of the .size() method here.