How does jQuery remove hover events using the unbind method?
Source: Internet
Author: User
Today, I encountered the problem of how jquery removed hover. At first I thought that it could be done directly by unbind (hover), but it failed to pull it for half a day. Baidu also searched a lot about jquery's unbind for the hover event, and then found the correct method on a foreigner's blog. Now I love the micro network to come up... syntaxHighlighter. today, I encountered the problem of how jquery removed hover. At first I thought that it could be done directly by unbind ("hover"), but I failed to pull it for half a day. Baidu also searched a lot about the hover event unbind in jquery, and then found the correct method on a foreigner's blog, now, IMG shares the jquery hover cancellation event mentioned on the Internet in the following ways:/* This method is incorrect */$ (# hover_div ). unbind (hover);/* This method is also incorrect */$ (# hover_div ). unbind (mouseover ). unbind (mouseout);/* This method is newly added and cannot be used in earlier versions */$ (# hover_div ). unbind (mouseenter mouseleave);/* This method is correct, and new and old versions are available */$ (# hover_div ). unbind (mouseenter ). unbind (mouseleave );
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.