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:
- add new
partial view
html_layout
can on pages. - put
<div>
tag html of 1 of menus inpartial view
- add related css
- add related js
- optional if information of menu comes database, can use
controller
,json
call fill menu, bit more complicated
hope helps, luck!
Comments
Post a Comment