Monday, 19 August 2013

How do I edit jQuery.mmenu.js to allow classes (not only IDs) to be targeted?

How do I edit jQuery.mmenu.js to allow classes (not only IDs) to be targeted?

I'm working on a mobile site and I want to reveal hidden submenus
underneath divs like Twitter's mobile site (swipe a tweet to reveal other
options). I really like the interface in the jQuery.mmenu.js plug-in, but
it's limited to only target IDs and I need to target classes.
I'm sure this is something that was set-up by Fred, which means
theoretically it could be changed.
The code can all be downloaded here: http://mmenu.frebsite.nl/
PS. This post is mostly intended for Fred as per his contact requirements,
but if anyone can think of a solution I'd love to try it.

No comments:

Post a Comment