jquery mb.menu

mb.menu This is a powerful jQuery component to build easily a multilevel tree menu or a contextual menu (right click) in an intuitive way! You can add as many submenus as you want; if your submenu or menu is not declared in the page, the component’ll get it via ajax calling the template page with the id of the menu you need (the value of  “menu” attribute) the ajax page should return a well formatted code as the example below for the menu voices code.

v. 2.9.7

What’s new in 2.9.7:

  • Various bug fix

275 Responses

  1. Top 10 Latest jQuery Navigation Menu Plugins and Tutorials | TypeError

    […] 2. jQuery mb.menu […]

  2. Pomme
    Pomme at · Reply


    are there any plans to make the menus “scrollable” verticaly (probably by hover) in the event of a large amount of subdirectories

  3. Hector
    Hector at · Reply

    Hi, Matteo,

    The menu is very good.

    I’m trying to use with asp.net mvc 4, but when I try to test it shows the following error “error in Microsoft runtime JSript: Object does not support property or method builMenu” in the $ (“. MyMenu “). BuildMenu (
    I could give a clue to overcome this problem.



    1. Matteo Bicocchi
      Matteo Bicocchi at ·

      Hi Hector,
      That means the main mbmenu.js file is not included in the page, or you have javascript errors in the page that prevent the correct initialization of the menu.
      Don’t you have a public page where I can inspect the code?


  4. Matt
    Matt at · Reply

    Hi Matteo! Looks like a great piece of work. One thing I am a bit confused abt… You have this great Ajax feature, but somehow, the sub menus are still defined on the page itslef (non-ajax). It would be awesome to make huge sized menus (which are too big to be loaded completely during initial page load due to big data amounts), but if i have to define them on the page itself (without ajax), then i am stuck with the old problem again. Is it possible to realise that with your component? Having Ajax menus AND sub menus?

    1. Matt
      Matt at ·


      I figured it out by myself, just changed the template file to be a php file. Works great! Another question would be if it is possible to have a click event opening (and closing) the submenu (For the Menu itself you can set openOnClick=true, but sub menus are always hover-event driven).

  5. Joe Huss
    Joe Huss at · Reply

    Sorry I had to update the fiddle to fix some linking problems, it should work now as a demonstration of the submenu problem: http://jsfiddle.net/detain/RU5uZ/

    1. Matteo Bicocchi
      Matteo Bicocchi at ·

      Hi Joe, what do you mean by “menu separator”?
      I can’t see any “separator” in your sub-menu definitions…

      Under “billing” I added a separator as follow: http://jsfiddle.net/RU5uZ/7/
      And it works fine…


  6. Joe Huss
    Joe Huss at · Reply

    You can see a demo at the above URL, You can see the submenus working on the regular menus (like Billing menu) , but the boxMenu submenus dont seem to be working (ie the Webhosting menu)

  7. Edwin
    Edwin at · Reply

    Hi Matteo. When I upgrade from version 2.7 to 2.9 the menu separator disappears.

    1. Matteo Bicocchi
      Matteo Bicocchi at ·

      Do you have a public URL wher to see the issue?

  8. Joe Huss
    Joe Huss at · Reply

    Nested menus on a Boxmenu don’t seem to be working.

    1. mauro
      mauro at ·

      on my iis i have the same problem on IE9 with demo.html just the first td it’s showed, in Ffox o Chrome work fine

  9. Ming.He
    Ming.He at · Reply

    I have a question: why it can’t support json, if it support json, the developer don’t write HTML,and the mb.menu is parameterization , I think that can be more strong.

  10. Pat
    Pat at · Reply

    It’s a nifty menu system, but until it works on MSIE, which sadly is still the most widely used browser, it’s difficult to take it seriously.

    1. Matteo Bicocchi
      Matteo Bicocchi at ·

      It has been tested and used by thousand of people on IE7+ without any problem; which kind of problem are you getting?

    2. Pat
      Pat at ·

      The problem that I get with IE 8 is a screen with very large font that says:

      Although you can see and navigate this site, I recommend you to use a modern browser to reach the maximum user experience. Your browser actually doesn’t support many new features the web can offers.

      Here are some good choices:

      I hit the link to continue anyways, and I’m brought to what appears to be a screen full of graphics with no demo. The background image is maybe a pinkish dusk scene with a tree…

    3. Matteo Bicocchi
      Matteo Bicocchi at ·

      But that is My components site… not the component itself… And my site will never be friendly with IE less than v. 9 🙂

      If you test the component at its demo page you’ll see that this is working fine from IE7 above.


      Bye, Matteo

    4. Pat
      Pat at ·

      But that’s the problem, with IE8, I’m unable to *get* to the demo page. I’m going to send you an email so we can take this discussion offline.

Leave a Reply