[jQuery] Can I "access" and change content loaded dynamically after jQuery.js?
Hi there.
I am loading some content into my page …
$("#content").load(loadLink,"",hideLoader);
The file behind loadLink (e.g. contact.php) has some tables with
class="details" and I want them to be hidden and not shown until I
click the link before it.
$('.details').hide();
$('.showDetails').click(function() {
$('.details').slideToggle('slow');
return false;
});
But for some reason it doesn't work. The table .details is displayed
and when I click the link .showDetails nothing happens (I tried to
alert something, nothing here too).
I am afraid of it is not working with content loaded dynamically after
my page with the jQuery JS is loaded. Because jQuery doesn't knows the
"new" .details table??