这就是我正在做的在表中添加新行的操作:-
function expandAll(){
$('#myTableID>tbody>tr>td:nth-child(2)>div:nth-child(2)').each ( function() {
html = $(this).html();
// Is it possible to add this Row with animation
$(this).parent().parent().after( "<tr><td colspan='2'> </td><td colspan='15'>" + html + "</td></tr>" ).slideDown('slow');
} );
}
我可以添加新行,但使用没有效果滑下 .
如果您有 JQuery 1.3.2,您可以执行以下操作:
$("<your row html>").hide().insertAfter($(this).parent().parent()).slideDown('slow');
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)