Close menu on selection
- johnoatwork
- Offline Topic Author
- New Member
- Posts: 19
- Thanks: 0
It closes if you click its parent. So I guess what I need it a reference to the parent of the current active link.
by johnoatwork
Please Log in or Create an account to join the conversation.
the active class is added to the <li> element, so you can get it with something like
"li.active > a"
"li.active > a"
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
- johnoatwork
- Offline Topic Author
- New Member
- Posts: 19
- Thanks: 0
The event below only fires when you click the home icon. Clicking any other menu items, either parent or child does not fire the event.
jQuery("li.active > a").click(function() {
alert("firing");
});
jQuery("li.active > a").click(function() {
alert("firing");
});
by johnoatwork
Please Log in or Create an account to join the conversation.
here you are catching the click event, not fire it
give me your url to check
give me your url to check
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
- johnoatwork
- Offline Topic Author
- New Member
- Posts: 19
- Thanks: 0
There is a fairly rough development instance at
dev.visagateway.com.au/
by johnoatwork
Please Log in or Create an account to join the conversation.
- johnoatwork
- Offline Topic Author
- New Member
- Posts: 19
- Thanks: 0
I know the code isn't triggering a click. At the moment just trying to identify the element I need to click to close.
by johnoatwork
Please Log in or Create an account to join the conversation.
Time to create page: 0.666 seconds