Previous Javascript Menu Example Next Javascript Menu Example
Disabled Menu Items

  • This demo uses theme rounded.
  • You can dynamically disable (menu.itemDisable) and/or enable (menu.itemEnable) menu items.
  • A good method to disable a link for the current page in a navigation menu.
  • If the menu item is disabled then the user can NOT click on the item.
  • In the HTML menu items are disabled by adding the class "zpMenuDisabled" to the <li> OR calling menu.itemDisable(ID), where menu is the variable for the Zapatec Menu and ID is the ID name of the <li> item.
  • This demo will disable Help and File-->New.