开发者

jQuery: Instead of Alert, Fadein data?

I display the data with alert in uploadify as following. However, instead of the alert, i want to print on the page instead of alert (for example jquery fadein.). How I can do that?

'onComplete': function(a, b, c, data, e){
     开发者_如何学运维       alert(data);                                
        },

Thanks.


$('<div style="height:100px; width: 200px; padding: 21px; display: none">' + data + '</div>')
    .appendTo('body')
    .fadeIn()
    .delay(2000)
    .fadeOut();

Fiddle: http://jsfiddle.net/maniator/eR43D/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜