document.getElementById().innerHTML for select tag doesn't work in IE
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-05-14T23:16:35Z
Indexed on
2010/05/14
23:24 UTC
Read the original article
Hit count: 264
JavaScript
i have the following simple script
<input type="button" onclick="document.getElementById('a').innerHTML = '<option>something</option>';"/>
<select id="a" style="width: 150px;">
</select>
but it doesn't work in IE. could you tell me why? thanks
© Stack Overflow or respective owner