By bloid
via blog.brandonaaron.net
Published: Aug 22 2007 / 15:46
Live Query, previously called Behavior, utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.
For example you could use the following code to bind a click event to all A tags, even any A tags you might add via AJAX or a script.
Tweet
SaveShareSend
Tags: javascript
Add your comment
Voters For This Link (22)
-
bloid -
vladocar -
littleguru -
jeresig -
jawbrey -
coryplayspiano -
eskimob -
wycats -
ganeshread -
reybango -
johndehope3 -
scott_sauyet -
micropat -
tjweir -
xexamedes -
jkso -
xhanin -
unchqua -
jvwilge -
michaelklishin.myopenid.com -
craigmackay -
eaguilar