Hi I want to count LI which does not have the UL , for the first level only, but when I count this it shows size 4 instead of 2, its count the inner LI also.
&l
$('.first-level > li:not(:has(ul))').size()