PDA

View Full Version : Select Country?


Techno
09-08-2006, 08:40 PM
in javascript, if we have a drop down box with a list of countries, is it possible to programmatically select one of the countries? if so - how?

blackpepper
09-08-2006, 08:46 PM
so your looking to set the selected and showing tab of a drop down list using JS?,, are you looking to do this by user input? or to hardcode 1 option into the script? sry if im not making sense.

Kravvitz
09-08-2006, 08:48 PM
Loop through the options to find the one you want and then set its selected property to true. (http://www.javascriptkit.com/jsref/select.shtml)

Techno
09-08-2006, 09:02 PM
thanks kra....thats what im after :D