addEventListener not working in IE8

前端 未结 9 1612
耶瑟儿~
耶瑟儿~ 2020-11-22 15:40

I have created a checkbox dynamically. I have used addEventListener to call a function on click of the checkbox, which works in Google Chrome and Firefox but <

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 16:01

    If you use jQuery you can write:

    $( _checkbox ).click( function( e ){ /*process event here*/ } )
    

提交回复
热议问题