144
rated 0 times
[
146]
[
2]
/ answers: 1 / hits: 26283
/ 12 Years ago, tue, june 12, 2012, 12:00:00
I want this script to add an option to the list.
When you open the list I want the options to be test
and hello
What am I doing wrong?
<SCRIPT>
function runList(){
document.getElementById('list').value = <option>hello</option>;
}
</SCRIPT>
<FORM NAME=myform ACTION= METHOD=GET>
Your Options:
<INPUT TYPE=button NAME=button VALUE=Click onClick=runList()/>
<SELECT NAME=list ID=list>
<OPTION>test</OPTION>
</SELECT>
More From » html