Home
Web Front-end
JS Tutorial
jQuery uses unbind method to remove hover event and other methods introduced_jquery



jQuery uses unbind method to remove hover event and other methods introduced_jquery
May 16, 2016 pm 05:40 PMToday I encountered the problem of how to remove hover in jquery. At first I thought that it could be solved by just unbind("hover"), but after a long time, it failed. Baidu also searched a lot about unbinding the hover event in jquery, and finally saw the correct method on a foreigner's blog. Now Aiwei.com has shared what is said on the Internet There are the following methods to cancel the hover event in jquery :
Copy code The code is as follows:
/* This method is wrong */
$(#hover_div).unbind(hover);
/* This method is also wrong*/
$(#hover_div).unbind(mouseover).unbind(mouseout);
/* This method is new and cannot be used in older versions*/
$(#hover_div).unbind(mouseenter mouseleave);
/* This method is correct, both old and new All versions are available*/
$(#hover_div).unbind(mouseenter).unbind(mouseleave);
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

Custom Google Search API Setup Tutorial

8 Stunning jQuery Page Layout Plugins
