IE HTML radio change event

后端 未结 2 752
清歌不尽
清歌不尽 2020-12-21 02:20

I have a project that requires some values to get updated with JavaScript from an HTML radio change event.

For some reason in IE, it seems that the onchange event is

2条回答
  •  轮回少年
    2020-12-21 02:40

    I had the same exact issue. The only options I found were:

    1. Use a js framework that consolidates all of the browser to browser idiosyncrasies (you're going to want to do this, trust me. Have you tested your page in Safari yet?)

    2. If you need the event to trigger but don't want to use onclick, use onfocus or onblur. If you use onblur for the OTHER radios, it is almost identical.

提交回复
热议问题