这不会在Chrome为我工作onchange事件不火对铬ASP复选框仅
<asp:CheckBox ID="chkFullReIndex" runat="server" ClientIDMode="Static" onchange="funCalled();" />
<script>
function funCalled() {
if ($('#chkFullReIndex')[0].checked) {
alert('check box checked')
}
else {
alert('check box not checked')
}
}
</script>
这是在Firefox(21.0)的工作完全正常,但在Chrome中不工作(版本27.0.1453.94米)不是在同一
@Zenith为了获得DOM元素,我认为 –
你检查了你的html ...是否所有大括号关闭? –
@roasted不应该只有一个具有该ID的元素,所以'$('#chkFullReIndex')'就足够了? – lifetimes