开发者

jQuery set time out

开发者 https://www.devze.com 2023-03-22 21:55 出处:网络
开发者_Python百科I need a function that will do the following. It will immediately let a DIV show and after 5 seconds it should disappear.

开发者_Python百科I need a function that will do the following.

It will immediately let a DIV show and after 5 seconds it should disappear.

I am fine with showing and hiding a DIV, but I do not know how to mix this with the set time out functionality.

Please help.

Thanks


$("div").show('fast').delay(5000).hide('fast');

Of course you should adjust selector according to your actual markup.

0

精彩评论

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