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 ( $(\'
Another approach to count number of list elements:
var num = $("#menu").find("li").length; if (num > 1) { console.log(num); }
Element 1 Element 2 Element 3