How to call the javascript function, after loading the particular div?
2 Answers
Typically, JavaScript execution is deferred till after the entire document is loaded by using the window.onload event.
window.onload = function() {
// Do stuff
};
Otherwise, if you don't want to or if you have no need to wait for the entire document to load, you can include your JavaScript directly after the closing tag of the element (div) which you are concerned with.
<div>
...
</div>
<script src="blah-blah-blah.js"></script>