I need a way to use the jquery .live() function to act on elements that are loaded via ajax.
.live()
For instance a div is loaded via ajax .load()<
.load()
Yap, it is still little expensive. But you can try this:
$(document).ready(function(){ $(document).bind('DOMSubtreeModified', function() { if($("#mydiv").length > 0){ //Here goes your code after div load } }); });