I try to create a Navigation, with less Javascript possible. Ideally without any Javascript.
So for that I want to know, how I can find out, if a LI has a child UL, with a submenu. If the li has a ul child, the li should get a class (arrow eg).
Example:
<ul>
<li>Some List Item</li>
<li class="needAwayToMarkThisAsHasChildUl">Some List Item
<ul>
<li>Some sub list item</li>
</ul>
</li>
</ul>
Is this possible without Javascript?