I am loading a page into a div via the jquery load function. The actual loading part is fine. The code looks basically like this:
$("div#loadhere").load("newfile.html?" + new Date().getTime());
In newfile.html I have a series of divs, and I have code that (for testing) sends an alert when a div is clicked. That's fine too.
The problem is this: when I load a page into div#loadhere and then choose a different page to load into the same div, the alert message happens twice. If I load yet another page, it happens three times.
In other words, it seems like jquery (or the DOM) doesn't realize that the previous loads have gone away.
Thanks very much in advance for any help!