jqueryで表の列を移動させる2

8列目から3列目へ移動
>|html|
$("input:button#test3a").click(function(){
alert("This is button\n");
str=$("#myTable tr th:nth-of-type(9):eq("+0+")").html()
$("#myTable tr th:nth-of-type(4):eq("+0+")").after(''+str+'');
$("#myTable tr th:nth-of-type(10):eq("+0+")").remove();
for(var i=0;i<=1000;i++){
str=$("#myTable tr td:nth-of-type(9):eq("+i+")").html()
$("#myTable tr td:nth-of-type(4):eq("+i+")").after(''+str+'');
$("#myTable tr td:nth-of-type(10):eq("+i+")").remove();
}




});
|