Posted By

kristin on 01/20/08


Tagged

ajax jquery livequery


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

liqweed
umang_nine
xmartyxcorex
wirenaught


bind jquery events to ajax'd content with livequery


 / Published in: JavaScript
 

modal would be the bodyID of your modal window. I use jqmodal so it strips out all the header tags, and takes your body ID and turns it into a div.
  1. $().ready(function() {
  2.  
  3. /* use livequery to bind events to stuff that wont see the dom */
  4.  
  5. $("#modal").livequery(function() {
  6.  
  7. /* do your business here */
  8.  
  9. });
  10.  
  11. });

Report this snippet  

You need to login to post a comment.