tags:

views:

39

answers:

1

My slideDown effects didn't showup after invoking load method , my code is :

$("#outerDiv").load("vacation.do #innerDiv",{},function () {$("#outerDiv").slideDown("slow");});

What's the problem ?

A: 

The #outerDiv does not exist when Your code is being run.

    $(document).ready(function(){
     //put Your code here so that it runs when all the HTML content
     // is already parsed by the browser
    });

this is a more understandable version of the $(function(){ /* your code */ }); mentioned before.

naugtur