Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
jQuery bind(), live(), delegate(), on() clarifi...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Oursky Limited
March 19, 2012
Programming
120
2
Share
jQuery bind(), live(), delegate(), on() clarification
Oursky Limited
March 19, 2012
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
530
SSH Can
oursky
1
340
HTTP/2
oursky
0
370
watchOS2
oursky
0
370
Common QA issues
oursky
0
220
Complex is better than complicated
oursky
0
310
Clean code again
oursky
3
400
KiriKiri x O2 x NVLMarker
oursky
0
260
Flux + React
oursky
1
410
Other Decks in Programming
See All in Programming
JCON - Create Agentic AI Apps, The Easy Way!
kdubois
1
100
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.5k
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
100
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
580
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.9k
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
440
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
250
実用!Hono RPC2026
yodaka
2
310
tRPCの概要と少しだけパフォーマンス
misoton665
2
270
20年以上続くプロダクトでも使い続けられる静的解析ツールを求めて
matsuo_atsushi
0
140
Kingdom of the Machine
yui_knk
2
1.5k
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
2.7k
Featured
See All Featured
Test your architecture with Archunit
thirion
1
2.2k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
690
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
First, design no harm
axbom
PRO
2
1.2k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
180
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
350
Measuring & Analyzing Core Web Vitals
bluesmoon
9
820
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
560
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Making Projects Easy
brettharned
120
6.6k
Fireside Chat
paigeccino
42
3.9k
Transcript
Oursky Weekly Presentation jQuery bind(), live(), delegate(), on() clarification
Web View... Starting with sample code.. HTML...
Simple Binding JS... Notes Most common binding Attaches the event
handler to every matched elements Doesn’t work for dynamic elements added later on (such as ajax)
Live() JS... Notes Similar syntax Binding still works when dynamic
elements added later on Attached the event handler to “document” once StopPropagation not working already because the event is propagated to the root to handle already Have performance issues
Delegate() JS... Notes Only bind to selected root element The
event still propagated from target element to selected root element, but it is much better than live()
On() bind(), live() and delegate() just become one line call
in jQuery 1.7, as well as their unbinding methods
Custom events? JS... Notes It also works on custom binding
events!
Credits Web Dev .NET - Differences Between jQuery .bind() vs
.live() vs .delegate() vs .on() http://www.elijahmanor.com/2012/02/differences-between-jquery-bind-vs-live.html jQuery on() http://api.jquery.com/on/