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");
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744756407a4591908.html
评论列表(0条)