Thank you Danny, it escaped my mind that the load() can return prior
to DOM structure is updated.
It works OK now that I use the synchronous version.
On 26 окт, 05:58, Danny Wachsstock <[EMAIL PROTECTED]> wrote:
> .load is asynchronous, which means that it returns (and the next statement is
> ex
.load is asynchronous, which means that it returns (and the next statement is
executed) before it finishes loading.
So
$("#left").load("test.html");
starts loading #left with test.html
but
$("#left").css("border","1px solid red");
executes within milliseconds, and test.html probably hasn't
2 matches
Mail list logo