here is our html code:
<select id="id_s"> <option value="a">first</option> <option value="b">second</option> </select>
Now suppose i want to add one option ‘third’, here is the code for it:
var combo = document.getElementById('id_s'); combo.options = new Option ("third", "c");
Courtesy : This forum.