We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

kristin on 01/20/08


Tagged

ajax jquery livequery


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

liqweed


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.