Remove all event handles for all p elements:
The unbind() method removes event handles from selected elements.
This method can remove all or selected event handlers, or stop specified functions from running when the event occurs.
The unbind() method works on any event handler attached with jQuery.
Specifies one or more event handlers to remove from selected elements.
If no parameters are specified, the unbind() method will remove ALL event handlers from the specified element.
| Parameter | Description |
|---|---|
| event | Optional. Specifies one or more events remove from the elements. Multiple event values are separated by space. If this is the only parameter specified, all functions bound to the specified event will be removed. |
| function | Optional. Specifies the name of the function to unbind from the specified event for the element |
Specifies an event object to remove. This is used to unbind an event from within itself (like removing an event handler after the event has been triggered a certain number of times).
If no parameters are specified, the unbind() method will remove ALL event handlers from the specified element.
| Parameter | Description |
|---|---|
| eventObj | Optional. Specifies the event object to remove to use. The
eventObj parameter comes from the event binding function |
Unbind a specific function
How to use the unbind() method to unbind a specific function from a specified event for an element.
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|