I'm building dynamically an UL > LI > a
structure, I want to check if on click event there are many other nodes.
I try this:
jQuery('ul.sub-menu li a').click(function(){
if(jQuery(this).has('.sub-menu').length > 0)
return false;
});
but doesn't work!