Setting innerHtml of a selection box in IE

后端 未结 2 595
执笔经年
执笔经年 2020-12-11 23:58

On my website there is a situation where I need to append new < //option> tags to a specific selection box. I am doing the following:

1.Make an ajax request which

2条回答
  •  猫巷女王i
    2020-12-12 00:32

    It's a known IE bug. You can either user DOM methods to append/replace the option elements, or you can use the workarounds suggested by Microsoft, one of which is to wrap your select in a div and set the div's innerHTML to "

    提交评论

提交回复
热议问题