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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Oursky Limited
March 19, 2012
Programming
2
120
jQuery bind(), live(), delegate(), on() clarification
Oursky Limited
March 19, 2012
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
520
SSH Can
oursky
1
330
HTTP/2
oursky
0
370
watchOS2
oursky
0
360
Common QA issues
oursky
0
220
Complex is better than complicated
oursky
0
300
Clean code again
oursky
3
390
KiriKiri x O2 x NVLMarker
oursky
0
260
Flux + React
oursky
1
410
Other Decks in Programming
See All in Programming
CSC307 Lecture 15
javiergs
PRO
0
250
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1.1k
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
180
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
150
Docコメントで始める簡単ガードレール
keisukeikeda
1
120
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8.1k
TipKitTips
ktcryomm
0
170
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
200
Windows on Ryzen and I
seosoft
0
300
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
270
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
230
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
120
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
190
Become a Pro
speakerdeck
PRO
31
5.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
76
Marketing to machines
jonoalderson
1
5k
Building Adaptive Systems
keathley
44
3k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
63
51k
Ruling the World: When Life Gets Gamed
codingconduct
0
180
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
190
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
120
So, you think you're a good person
axbom
PRO
2
2k
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/