Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

Event Handling in jQuery

Bind, namespaced, and unbind events cleanly with .on() / .off().

Event Handling in jQuery — a practical guide to jQuery event handling with clear examples you can reuse in real projects.

jQuery Tutorial Series (26/101). Prefer one article? Read the complete jQuery tutorial.

Short description

Namespaces help remove only your handlers: click.myPlugin.

on/off

$('#list').on('click.myApp', '.item', handler);
$('#list').off('click.myApp');

Leave a reply

Your email address will not be published. Required fields are marked *