I'm looking for a way to have jquery automatically change the content of a <div>
upon its creation in a page.
What I'm doing, specifically, is to use jquery to load django templates into the page. Some of those templates contain s that I want to immediately alter as soon as they come into the browser.
As a simple example, what I'd like is for the following to work:
$(".load_into").live("load",function(){$(this).html("Dynamic content!");});
However, "load" isn't an eventtype that can be used with <div>
s, so that doesn't actually work. Any thoughts on simple ways to do this? Thanks for any help!