开发者

The click event handler added with jQuery's live method gets triggered for a disabled asp.net image button

How do I stop a click event handler added with jQuery's live method 开发者_JS百科from getting triggered on an already disabled asp.net image button?

Following is the code snippet.

    $('#<%=imgBtnEdit.ClientID%>').live('click', function () { ... });


Add the :enabled pseudo-selector.

$('#<%=imgBtnEdit.ClientID%>:enabled').live('click', function () { ... });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜