Guess I've never had to do this before - Just want to fill a select box with some values from an array. I just don't know how to fill it. I've tried this among others.
I really just need to know how to reference it using the DOM, So that I can just loop through my array and fill in the select box.
Basscyst
Code:
function fillSelect() { document.getElementById('sname').options[0].[document.getElementById('sname').options[0].selectedIndex].text="Happy"; }
Basscyst
Comment