sam wrote:
How do I then run the $(document).ready() function on *only* this new div that has been inserted into the DOM? If I rerun the entire $ (document).ready() function, the original "alerter"s will have the click function bound twice.
There is a optional context to the "$()" method; supply your new div here:
$(".alerter", $("#newDiv")).click( function(){
alert('you clicked me.');
});
You may need to call this in your ajax callback function in order to
time it properly.
Cheers, -- Scott

