CSS Jquery Mysql PHP

Simple Drop Down Menu with Jquery and CSS

This post is very basic level Jquery and CSS implementation. I want to explain how to design simple drop down menu  with CSS, HTML and Jquery. This system helps you to minimise the menus list. Just take a quick look at this post very few lines of code, use it and enrich your web projects.

Download123

HTML Code
Simple HTML code

 
JavaScript
Contains javascipt code. $(“.account”).click(function(){} account is the class name of the My Account anchor tag. Using $(this).attr(‘id’) calling id value of the anchor tag and based on condition showing .submenu div box and the same time $(this).attr(‘id’, ‘1’) adding id value too.

Document click on document $(document).mouseup(function() hiding the .submenu

CSS Code