开发者

JQuery: .LOAD, how to get next call to happen AFTER the .LOAD completes?

JQuery: .LOAD, how to get next call to happen AFTER the .LOAD completes?

Basicly Im 开发者_开发百科loading some information into a div which is dynamically adjusting the height of the DIV as it loads.

I then want to run a call to adjust the height of the DIV, but can only properly calculate after the load completes in full.

Thanks!


You can pass load() a callback like so:

$('#result').load('http://wherever-youre-loading-from.com', function() {
   // resize result div here
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜