Close menu on selection

Replied by johnoatwork on topic Close menu on selection

Posted 8 years 10 months ago #27628
It closes if you click its parent. So I guess what I need it a reference to the parent of the current active link.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Close menu on selection

Posted 8 years 10 months ago #27630
the active class is added to the <li> element, so you can get it with something like
"li.active > a"

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by johnoatwork on topic Close menu on selection

Posted 8 years 10 months ago #27631
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");
});

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Close menu on selection

Posted 8 years 10 months ago #27632
here you are catching the click event, not fire it
give me your url to check

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by johnoatwork on topic Close menu on selection

Posted 8 years 10 months ago #27633
There is a fairly rough development instance at dev.visagateway.com.au/

Please Log in or Create an account to join the conversation.

Replied by johnoatwork on topic Close menu on selection

Posted 8 years 10 months ago #27634
I know the code isn't triggering a click. At the moment just trying to identify the element I need to click to close.

Please Log in or Create an account to join the conversation.

Time to create page: 0.666 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1075 guests and one member online