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();
精彩评论