You can't bind any events to the controls on $(document).ready() if
the html isn't there. I would try binding the event after you call $
("#content").load(loadLink,"",hideLoader);

On Dec 21, 10:17 am, suntrop <[email protected]> wrote:
> 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??

Reply via email to