1. ホーム
  2. javascript

[解決済み] jQueryで "hover "のバインドを解除するには?

2022-09-21 22:02:49

質問

jQueryで"hover"のバインドを解除するにはどうすればよいですか?

これはうまくいきません。

$(this).unbind('hover');

どのように解決するのですか?

$(this).unbind('mouseenter').unbind('mouseleave')

またはもっと簡潔に (ありがとう チャド・グラント ):

$(this).unbind('mouseenter mouseleave')