admin管理员组文章数量:1391960
A use jquery and button used my style, but when i clicked on button style changed on ui-state-focus. I try remove jquery style
$("button").mousedown(function () {
$('button').removeClass("ui-state-focus");
});
but it not worked. How to remove jquery style?
A use jquery and button used my style, but when i clicked on button style changed on ui-state-focus. I try remove jquery style
$("button").mousedown(function () {
$('button').removeClass("ui-state-focus");
});
but it not worked. How to remove jquery style?
Share Improve this question asked Mar 12, 2013 at 11:16 NarNar 5501 gold badge9 silver badges23 bronze badges2 Answers
Reset to default 4I add removeClass in focus and worked for me.
$("button").focus(function () {
$(this).removeClass("ui-state-focus");
});
You should use $(this)
instead of $('button')
$("button").mousedown(function () {
$(this).removeClass("ui-state-focus");
});
本文标签: javascriptjquery how to remove uistatefocusStack Overflow
版权声明:本文标题:javascript - jquery how to remove ui-state-focus - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744756407a2623489.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论