【发布时间】:2010-09-29 04:46:17
【问题描述】:
<select id="selectId">
<option>Please select product ...</option>
</select>
我在firefox上试了试
$('selectId').innertHTML = '<option>Test test</option>'
但在 ie 上,它不起作用,如何通过字符串选项添加选项,如上面在 ie 中
【问题讨论】:
-
您确定这不是拼写错误吗? $('selectId').innertHTML = ''
-
哦,我用innerHTML试试,结果一样,就是不行~.~
标签: mootools