开发者

Fading effect everytime I add an item in my table ein javascript/jQuery

开发者 https://www.devze.com 2023-03-17 19:30 出处:网络
I\'m developing a webapp using ASP.NET, C# and jQuery. And I have开发者_运维百科 a page where I add a certain item. And in this item, it will also list all the current items. Above the list is a form

I'm developing a webapp using ASP.NET, C# and jQuery. And I have开发者_运维百科 a page where I add a certain item. And in this item, it will also list all the current items. Above the list is a form that I can add a new Item. Then everytime I add a new item will add above of list with a fading effect. Is this possible?

Please advise.

Many thanks.


try this,

http://www.learningjquery.com/2008/02/simple-effects-plugins


Yes, assuming you have the new record in a tr row you could do something like this:

$tr = newRow(); //Create tr with your new record here
$tr.hide();
$tr.appendTo($("#your_table")).fadeIn();

Hope this helps

0

精彩评论

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