<input type="radio" name="cmppProducts.isgive" id="isgive" value="1" checked="checked" οnchange="changeIsgive()" />是
<input type="radio" name="cmppProducts.isgive" id="isgive" value="2" οnchange="changeIsgive()" />否
在不同瀏覽器出現不一致的操作,主要代碼是上面的。在google瀏覽器可以正常點擊觸發操作changeIsgive()函數,但是在IE11不能,選中radio後失去焦點後需要在空白處點擊下才會觸發changeIsgive()函數操作
解決方法:在保留onchange的前提下,在onclick裏面調用radio的blur()方法。加上onClick=”this.blur();”即可解決