I would like to add a class "my-class-to-add" for each "FIRST" element inside this class "menu-item-has-children" that has "ul" on it.
I tried it using this one but only the second menu the class was added. Thanks for your help.
<script>
jQuery(document).ready(function ($) {
$('.nav-menu .menu-item-has-children ul:eq(1)').each(function() {
$(this).addClass('my-class-to-add');
});
});
</script>