I am trying to build a website using ajax.
I want to replace a part of the page with new html/php and then run a javascript that needs access to the updated DOM.
I figured that using jQuerys load() -function and calling the script from the “complete”-callback (see link) will fit my needs best. My question is: Can I assume the DOM to be ready and rebuilt once the “complete” – callback is executed?
Yes, the new script will have full access to the new DOM.