I've a combo box in my form with the name of all days like "MON","TUE",... I need to set the day selected with respect to the value of an hidden field called 'day_sel'. Suppose day_sel="TUE", i need TUE to be set selected in combo. Is there any method for combo in javascript like setSelectedItem or setText? Plz reply with the argument that is to be passed with that method
Purple Martin
11:53 pm on Feb 29, 2004 (gmt 0)
You don't use a method, you set a property.
Firstly, loop through all the option objects and set their selected property to false. Then set the one you want to true.