Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know how to code for horizontal menu bar with submenu items on clicking the menu.And also want to use the dropdown arrow.gif in the menu. I've designed a menu but dont know how to display the submenu for those using JS
Posted

HTML :
XML
<div class="panel" id="panel_1">
                    <p class="flip" ><a href="#" class="remove">x </a>.net <span class="embed">Add</span></p>
                        <ul>
                            <li><a class="remove_c"href="#">x </a>Arun<input type="button" class="integ" value="Add"/></li>
                            <li><a class="remove_c"href="#">x </a>Ajay<input type="button" class="integ" value="Add"/></li>
                            <li><a class="remove_c"href="#">x </a>Ashok<input type="button" class="integ" value="Add"/></li>
                        </ul>
                </div>

CSS :
CSS
ul
 {
display:none;
margin: 10px;
padding-left: 0 !important;
}


Jquery :

$(document).ready(function(){ $("p").live('click',function(){
              $(this).next().slideToggle("slow");
               });  
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900