Ajax, Html: can't generate the content of SELECT tag
- by Syom
i have the following html code
<select id="c0" name="countries" onchange="show_other()">
<option value="1">something</option>
<div id="c1">
</div>
</select>
i have the option "something", and i want to generate other options via Ajax.
but if i try to this
document.getElementById('c1').innerHTML = xmlhttp.responseText
it doesn't work, but
document.getElementById('c0').innerHTML = xmlhttp.responseText
works fine, but i need to keep the first option.
could you explain what is the problem?
thanks