开发者

I can't clear the SELECT list with "selectedIndex = -1" in Internet Explorer 8

after an hour of trying to fin开发者_开发百科d a solution, I give up (temporarily). "this.selectedIndex = -1" clears all select element just fine in FF and other browsers, but NOT in Internet Explorer 8.

any idea how to clear select elements in IE?

thanks!


Rather than having a dropdown point to an invalid option, the standard solution is to have the first option of the dropdown say something like "(select)", so you can just reset to 0 if necessary

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜