Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.menu-item-has-children > a').on('click', function(){
- // Stop default behaviour
- e.preventDefault()
- // Find the correct element to be clicked and click it manually
- this_clicked = $(this)
- siblingDropdownIcon = this_clicked.siblings('span').first()
- siblingDropdownIcon.click()
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement