Home > Web Front-end > JS Tutorial > body text

Getting Started with JQuery - Overview and Application of Unbind Method for Removing Binding Events_jquery

WBOY
Release: 2016-05-16 17:42:00
Original
1351 people have browsed it

1. In the practical operation of DOM objects , since there is a bind method for binding events, there is also a corresponding method for removing bound events. In JQuery, you can use the unbind method Remove all bound events or an event.

2. Sample code :

Copy code The code is as follows:





unbind method removes binding event










< ;/div>




3. Preview of the rendering :
Click button one and button two:


Click the delete button two event. There is no response when clicking button two. Clicking button one has a response:


No response after clicking all buttons to delete all events:


Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!