Web Tips Plus
ウェブ開発に関するメモ帳です。
2015年11月19日木曜日
How to toggle a class immediately upon click (not after mouse button is released) - Stack Overflow
$
(
"span"
).
mousedown
(
function
()
{
$
(
this
).
toggleClass
(
"active"
);
});
http://stackoverflow.com/questions/24833675/how-to-toggle-a-class-immediately-upon-click-not-after-mouse-button-is-released
0 件のコメント:
コメントを投稿
‹
›
ホーム
ウェブ バージョンを表示
0 件のコメント:
コメントを投稿