jagadeeshds Posted March 14, 2011 Share Posted March 14, 2011 I want to set the default value of a dropdownlist (asp control). I used the normal scripting code but, it did not work. Give me some examples and explain what properties to be set. Link to comment Share on other sites More sharing options...
thescientist Posted March 14, 2011 Share Posted March 14, 2011 what code do you have? (normal scripting code is a pretty vague description). If you want to set an option in a drop down as already selected, then you need to set that particular options selected property to 'selected' when you generate the HTML output.http://www.w3schools.com/jsref/dom_obj_option.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.