You have to attach triggers to elements AFTER they've been loaded, do
this in the callback:
$(".info").load('http://localhost/modules/esas/info.php",function(){
$(".phone").click(function(){
$(".info").slideUp("fast");
}
});
- jake
On 3/13/07, JQuery - SimDigital <[EMAIL PROTECTED]> wrote:
> I send POST params to another script and when it bring back, the effects
> doesn't work.
>
> My code:
>
> >> index.php <<
> etc...
> $(".business").click(function(){
> $(".info").slideDown("fast");
> $(".info").load('http://localhost/modules/esas/info.php);
> }
> $(".phone").click(function(){
> $(".info").slideUp("fast");
> }
> etc...
> <div class="business">Company XYZ</div>
> <div class="info"></div>
>
>
> >>info.php
> <div class="phone">555-5555</div>
>
>
> When the info.php is loaded, the div "phone" doesn't animate. :-(
> How to solve this?
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/