Does anyone know if it possible to change HTML with jQuery that appears below the script?
I'm using:
$("div.className").html("My changed HTML here");
to change some text on a page. However it seems to only work if that HTML appears somewhere above the script placement. Is it possible to have it work on HTML that appears below the script placement? Or does the script need to be the last thing to load on the page?
Thanks for any help.
<script>tags at the very bottom of the page is the way to go. http://developer.yahoo.com/performance/rules.html#js_bottom