Skip to content

Turn unorderer list menu into dropdown select menu

Notifications You must be signed in to change notification settings

tobiasviehweger/mobilemenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Fork

This fork adds a new setting called linkAnchor, see below.

jQuery Mobilemenu

jQuery mobile menu is a jquery plugin for turn an unordered list menu into dropdown select menu

Instalation

Just include the script on your html files

<script type="text/javascript" src="jquery.mobilemenu.js"></script>

Usage

After including the script on your html, just write this code somewhere on your javascript file.

$('.menu').mobileMenu();

Options

jQuery mobilemenu have some options:

  • defaultText: default text for option element

  • className: Class name for dropdown select menu

  • subMenuClass: Class name for submenu /* Updated you don't need to add class to sub menu */

  • subMenuDash: Separator for submenu

  • linkAnchor: Specifies a link anchor which should be prepended to all links (e.g. '#content')

$('.menu').mobileMenu({
	defaultText: 'Navigate to...',
	className: 'select-menu',
	subMenuDash: '&ndash;'
});

About

Turn unorderer list menu into dropdown select menu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%