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
test
hello
What am I doing wro
try out this
var element = document.getElementById('list'); element.options[element.length] = new Option('yourText', 'yourValue');