Perhaps you could use the delegate() function? It enables you to bind an event to some set of elements, even if those elements doesn't exists at the time of binding, meaning that if you dynamically load these elements afterwards, they will still get bound to this event.
This means, of course, that you could have your script on the main page instead of loading it with the other loaded data.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 01-16-2012 at 01:45 AM..
|