This may not be the ideal solution, depending on what you need the class for, but you could add a “parent” class via JavaScript. The line below uses the jQuery :has()
selector:
$('#nav-id').find('li:has(ul)').addClass('parent');
This may not be the ideal solution, depending on what you need the class for, but you could add a “parent” class via JavaScript. The line below uses the jQuery :has()
selector:
$('#nav-id').find('li:has(ul)').addClass('parent');