I’m having a problem similar to this: JavaScript not working inside AJAX loaded DIV but my problem is that I don’t have any event to bind to. I have this:
$('[title]').colorTip({color:'yellow'});
binding all elements with ‘title’ attribute to that object. It works fine on page reload. But on elements from AJAX call the story is different, it displays like the javascript doesn’t exist. I know to bind elements to other events from AJAX using live(), but how do I bind elements that don’t have ‘events’?
you have to re-bind the tooltip after the ajax call.
Or as suggested by jbabey, you might use the complete callback to re-bind the tooltip (simplified version from here):
Based upon your comment I included the following: You also have to make sure you bind the tooltip on page load: