Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:45

Using menu as a <select> replacement?

Poster: eggnog
Dated: Thursday May 5 2005 - 21:33:12 BST

Is it possible to set up the menu so it would work as a replacement of the select menu? I can handle setting the selected value with a hidden input set via javascript, but the missing piece is to have the collapsed menu show the selected option (like a <select> would). Is there some parameter I can use to set this, or some additional javascript trickery I can do to make this work?

Poster: Ruth
Dated: Thursday May 5 2005 - 22:04:12 BST

There is a demo about using the Milonic Menu as a select box and also in the same demo is information on putting a select box in the menu. I think the first is what you want mm_setSelected is the function.

Milonic Menu as a select box Hope this helps


Poster: kevin3442
Dated: Tuesday May 10 2005 - 0:49:33 BST


Just to add (since I did the mm_setSelected() function that Ruth mentioned)... Both approaches are a variation on the same theme. Both should work well. It's just that I took my example a little further and actually implemented the solution in a form, using a text field as a "holder" for the value that's selected from the menu item that poses as a select box. As you've already surmised, in a real form implementation, you'd hide the "holder" field and use it's contents in subsequent processing of the form input. The mm_setSelected() function will set the value of the holder field and change the text in the collapsed menu to show the selected value.