
[英]Asp.net button click event handler in update panel executes twice when enter with jquery
[英]The click event handler added with jQuery's live method gets triggered for a disabled asp.net image button
如何阻止使用 jQuery 的 live 方法添加的单击事件处理程序在已禁用的 asp.net 图像按钮上触发?
以下是代码片段。
$('#<%=imgBtnEdit.ClientID%>').live('click', function () { ... });
添加:enabled
伪选择器。
$('#<%=imgBtnEdit.ClientID%>:enabled').live('click', function () { ... });
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.