asp.net mvc 3 - How can i create a menu dropdown in MVC using jquery? -


what want is.....i have menu this

 <div id="menucontainer"> <ul id="menu"> <li>@html.actionlink("home", "index", "home")</li> <li>@html.actionlink("about", "about", "home")</li> <li>@html.actionlink("newmovies","newmovies","home")</li> </ul> </div> 

"newmovies" menu should have movies list..

now want have drop down menu "newmovies" using jquery ...can 1 me please

i recommend use different of default mvc3 menu brings you. pick whole new jquery menu here or here

it simple:

  1. add new partial view html _layout can on pages.
  2. put <div> tag html of 1 of menus in partial view
  3. add related css
  4. add related js
  5. optional if information of menu comes database, can use controller , json call fill menu, bit more complicated

hope helps, luck!


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -