Base solution for your next web application
Open Closed

Hide navigation menus #1999


User avatar
0
huntethan89 created

Hi, I need a condition in which i can hide menus of left side.

 Lets assume i have 7 menus of left side. i open first page and there is button on that page. On click of that button i want to hide first 5 menus and show only 6 and 7 menu item.

How can i achieve this?

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This is not related to AspNet Zero actually, but you can hide any element using jquery on the client side. For example you can hide first menu item like this. You can do the same for other menu items you want to hide.

    $("ul.page-sidebar-menu li:eq(0)").hide();