【发布时间】:2013-06-05 22:11:14
【问题描述】:
如何为上下排序移动添加动画移动效果。
您可以通过单击向上和向下文本链接来检查移动。
这是我的代码
$(document).ready(function(){
$('.move-up').click(function(){
if ($(this).prev())
$(this).parent().insertBefore($(this).parent().prev());
});
$('.move-down').click(function(){
if ($(this).next())
$(this).parent().insertAfter($(this).parent().next());
});
});
【问题讨论】:
标签: jquery css jquery-ui insertafter