onchange / onclick in a checkbox doesn't work in IE

后端 未结 4 1987
忘掉有多难
忘掉有多难 2020-12-03 08:27

I have the following code, which works perfectly in Chrome/FF:

chkbx_send_demo.onchange = function(){
    if(sel_template.selectedIndex <= 0 && ch         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 09:21

    i faced the same issue on ie8, i used below trick to fix it. http://sleeplesscoding.blogspot.com/2010/01/fixing-ie-onchange-event-for-checkboxes.html

提交回复
热议问题