테이블 부분은 다음과 같습니다. 코드 복사 코드는 다음과 같습니다. & lt; table class = "table"id = "test_table"& gt; ""gt; ; " move_act="up"> ~ td> ;/ tr> 테이블> 변경할 줄의 변경 순서 뒤에 class=danger를 추가하는 js 코드입니다. 코드 복사 코드는 다음과 같습니다. <BR>$(function(){<BR> $('.move_btn').click(function(){<BR> var move_act = $(this).attr('move_act');<BR> $(' #test_table tbody tr').removeClass('danger');<BR> <BR> if(move_act == 'up'){<BR> $(this).parent().parent('tr').addClass('danger')<BR> .prev().before($( this).parent().parent('tr'));<BR> }<BR> else if(move_act == 'down'){<BR> $(this).parent().parent('tr' ).addClass('danger') .next().after($(this).parent().parent('tr')); }<P> setTimeout("$('#test_table tbody tr').removeClass('danger');", 2000); });<P>});<div class="codetitle"> 변경 후 각 행의 고유 태그에 따라 새로운 주문을 제출할 수 있습니다