开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜