|
Dynamically deselecting HTML select menu items
On a page with an HTML form, I have two different select menus. When an item is select, my Javascript functions dynamically load data into the form, based on which item was selected. I've run into a bug when there is one item selected in one menu, and an item selected in the other. Is there a way to unselect all menu items in one of the select menus using Javascript?
The idea I had is that when one menu item is selected, my Javascript code will load data into the form AND deselect any active menu items from the other select menu in order to prevent the bug that arises. Is this possible?
(For the record, I'm not much a Javascript programmer....I just fumble my ways through functions as I need them).
Thank you!
Last edited by hunter1611; 12-26-2012 at 08:21 PM..
|