Using jquery ajax I populate contents of a div with HTML.
This new HTML data has javascript code (this part works correctly). However this javascript also has
$(document).load(function() { ... });
This part does not work since document is already loaded!
How should I handle this?
Nothing fancy is actually needed. It seems that dynamically loaded javascript is executed after the dynamic content is parsed by the browser.