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:

Country State City Drop Down in jQuery, AJAX

Dynamically Dependent country state city drop down box using jQuery, Ajax and PHP: This is commonly …

AJAX Post With jQuery and PHP

AJAX stands for Asynchronous JavaScript and XML. AJAX Post used to create faster, and more interacti…

How a Loop Through a JavaScript Object?

How a Loop through a JavaScript object?Javascript Objects are Variables Containing Variables.In Java…

How to Search Item in List in JavaScript

Multi Step Form Using HTML and JavaScript

Form is the important part in web design. Form is the primary interface to the user by which user is…

How to Create Custom CSS, jQuery Autocomplete Plugin

Web developers often use autocomplete features in websites as a part of their work. Yet lot of good …