Possible Bug: Problem with loaded content
Hi,
I'm having trouble with content I'm loading into a div tag from an
external HTML file. After the content loads, any clicks of HTML
content which contains any possibly selectable code doesn't run.
I have:
$(document).ready(function(){
$("a").click(function() {
var url = $(this).attr("href");
$('.forward').load(url);
return false;
});
.forward div now contains HTML from the href of the clicked element,
however when any link is clicked in the new HTML content, the function
in ready is never run. (I tested with FireBug).
Is this a known issue? Do I somehow have to refresh the DOM tree since
I added new content?
Any help would be appreciated.
Thanks,
Scott