ASP.NET CheckBox does not fire CheckedChanged event when unchecking

前端 未结 9 720
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 10:04

I have a CheckBox on an ASP.NET Content Form like so:



        
9条回答
  •  悲哀的现实
    2020-12-08 10:44

    Additionally: Check for any errors in the JavaScript console.

    I experienced the same exact issue described by OP except that it only happened in Safari (checkbox worked fine in Chrome and Firefox). Upon inspecting the JavaScript console, I found an error that was being thrown by a malformed jQuery selector.

    In my case, I had $('a[id*=lbView') which was missing a closing ]. This threw an error in Safari but, surprisingly, not in Chrome nor in Firefox.

提交回复
热议问题