开发者

How can I add a fadeIn effect to a string in jQuery?

开发者 https://www.devze.com 2023-02-18 09:06 出处:网络
I\'v开发者_运维问答e got the following string that increments my integer contained within a paragraph, and I\'d like to append the fadeIn() jQuery function to it. I\'ve tried to concatenate it to the

I'v开发者_运维问答e got the following string that increments my integer contained within a paragraph, and I'd like to append the fadeIn() jQuery function to it. I've tried to concatenate it to the end of the string, but that didn't work. Any suggestions on what to do here?

                $p.text(parseInt($p.text(),10) + 1);


Try

$p.text(parseInt($p.text(),10) + 1).hide().fadeIn();


Try $p.text(parseInt($p.text(),10) + 1).hide().fadeIn();

0

精彩评论

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

关注公众号