Comments (5)
You'd have to make 2 separate id's for each I'm assuming instead of [role='navigation']
. Tried that?
Do you have your code somewhere so I can take a look?
from flexnav.
You do indeed need 2 separate id's... but both menus will still respond to a men-button click.
I changed this:
// Toggle for nav menu
$('.menu-button').click(function() {
$this.slideToggle(settings.animationSpeed);
});
to this:
// Use unbind to prevent the click from firing twice...
// There's probably a better way to fix that...
$('.menu-button').unbind('click').click(function() {
// Get the .menu-button that was clicked and animate
// the relevant menu
$(this).next().slideToggle(settings.animationSpeed);
});
and it worked for my purposes...
from flexnav.
@wmetz Nice! Thanks for sharing.
from flexnav.
This plugin is ideally for a global navigation. Closing this issue.
from flexnav.
@wmetz I tried your approach and it broke both menu buttons. I changed the role and add the new role to the script at the bottom of the page and changed the JQuery to have your code you provide. Any suggestions of where I went wrong?
from flexnav.
Related Issues (20)
- menu-button element positioning improperly HOT 12
- Leave the expanded area open after clicking a link
- How to use multiple menus on same page?
- Closed thred
- 3rd and 4th level menu are not working in chrome
- Hyperflicker issue on desktop
- KindleFire HD Drop-Down Issue with FlexNav HOT 2
- Formatting Issue on Windows Phone 8.1 Nokia Lumia 635 HOT 1
- Problems showing sub-menus of first row when menus span in 2 rows
- Menu not resizing properly on Chrome or Firefox HOT 6
- Your Flexi-Nav does'nt work correct! HOT 3
- Dropdown cover by Bootstrap carousel, third level navigation not opening on a table/mobile HOT 2
- Tech issue with drop down menu with Microsoft Explorer and Microsoft Edge
- Change nav arrow icon HOT 1
- Flash of Dropdown on pageload HOT 5
- WordPress Appointkart plugin issue in iphone device HOT 2
- Issue with Chrome browser
- Demo no longer exists. HOT 1
- No update since six years?
- The demo link is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexnav.