Menu
Hi, I have created a dynamically generated drop-down box. I am struggling to find the syntax so that I can specify one of the select elements to be selected as default.
In normal html i would just write: <select selected=”selected”>Test</select>
I’m using javascript to create the <select> elements like this:
obj.options[obj.options.length] = new Option(‘testName’,’0000′);n
This is probably simple, but please could someone show how i could make this the default selected element?
Thanks