mnmenu: JQuery plugin to create dropdown menus from ul lists.

Mmenu is a JQuery plugin to create dropdown menus from ul lists.

This is a very simple and straightforward plugin. It’s still a work in progress project with more features to come, so check for updates to see what’s new in upcoming versions.

The aim of the project is to create a very simple to style dropdown menu. You can create a totally styled menu in less than 100 line css sheet.

MNMenu is now responsive, menu will collapse when top level is not visible in the device screen.

Download: https://github.com/manusa/mnmenu

Demonstration: https://www.marcnuri.com/en/content/mnmenu-dropdown-jquery-menu

Plugin homepage: https://www.marcnuri.com/en/content/mnmenu-dropdown-jquery-menu

Implementation:

1. FIRST, INCLUDE THE CSS & JQUERY FILES

<!-- include CSS & JS files -->
<!-- CSS file -->
<link rel="stylesheet" type="text/css" href="mmenu.css" media="screen" />
<!-- jQuery files -->
<script type="text/javascript" src="jquery.js"></script>
<script src="jquery.mnmenu.js" type="text/javascript"></script>

2. ADD YOUR HTML

<ul>
    <li>First Level
        <ul>
            <li>Second Level</li>
            <li>...</li>
        </ul>
    </li>
    <li><a href="#">First level as link</a></li>
</ul>

3. NOW, CALL THE MMENU PLUGIN

<script type="text/javascript">
$(document).ready(function(){
   $('#idmenu').mnmenu();
});
</script>

Methods:

mnmenuFunctionInitiate menu on list

Screenshots:

Creating a JavaScript Library

I recently wrote a JavaScript library for creating random colors and color schemes, and while I foun…

jQuery Flash Plugin

This jQuery plugin is for embedding Flash movies. Pages are progressively enhanced when Flash and Ja…

jQuery Optimization: Optimize Selector

We can also optimize our selector other than being a bit specific on our selector. The key to optimi…

jQuery drop down menu: droppy

Quick and dirty nested drop-down menu in the jQuery style. I needed a nav like this for a recent pro…

jQuery slideViewerPro: A “pro” jQuery image slider

slideViewerPro is a fully customizable jQuery image gallery engine which allows to create outstandin…

jQuery Optimization: Avoid Unnecessary Styling

This is another common mistake that many jQuery developer made. jQuery provides us with the ability …