Plugin to replace navigation with a dropdown for mobile devices
Switch branches/tags
Nothing to show
Pull request Compare This branch is 9 commits behind joggink:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

jQuery mobile select

What's it all about?

It's simple as abc. If you have some kind of navigation that you want to replace with a dropdown for mobile devices (read: screenwidth less than 480 pixels) then you've found what you're looking for.

How to use?

Download the jquery.mobileselect.js. Removing comments and minifying it will get you bonus points!

To use it:

  // your navigation ul selector
  $('#nav-main ul').mobileSelect();


You can optionally change these default parameters:


  // your navigation ul selector
  $('#nav-main ul').mobileSelect({
    autoHide: true, // Hide the ul automatically
    defaultOption: "Go to...", // The default select option
    deviceWidth: 480 // The select will be added for screensizes smaller than this


And that's it that's all.


There are still some things that need to be taken care of:

  • create a before / after hook so we can fix some things euhm... before and after I suppose