Ask questions and get good answers on mb.jQuery.components

I have a menu that is configured to close when a user clicks or leaves the menu field.

I also have a form in a drop down menu item. Works great, but my form does an ajax call and can return with an error message. This is shown in the form in the menu. Of course the message appears and the menu closes when the Goto button is clicked.

The problem I have is for this item in the menu I don't want the normal behaivor but want to keep the menu item open until I get valid data and redirect.

If I change the menu so it does not close it works great except now if the user pops up the menu they have to click somewhere to get rid of the drop down menu. This is not a behaviour that my users like.

Is there some way to abort the close on click for one item?

Thanks Mike

asked Jul 22 '10 at 19:23

Mike%20Coolin's gravatar image

Mike Coolin
111


Hi Mike, if you see on my demo file, the submit button under "menu 2" voice has an onclick function to close the opened menu. If you remove that function than the behavior should be the one you need. Bye, Matteo

answered Jul 24 '10 at 12:39

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

jQuery main site - Matteo Bicocchi