Want to check if the current links parent, which would be a list item in my case, has an unordered list or not.. Am looking for all the ones without unordered lists...
if($(this).parent().not("has(>ul)")){ $(this).addClass("active"); }
Want to check if the current links parent, which would be a list item in my case, has an unordered list or not.. Am looking for all the ones without unordered lists...
if($(this).parent().not("has(>ul)")){ $(this).addClass("active"); }