function toDown(){
alert("toDown");
var checkValue = "";
var alldatas=$("#up tr td input:checked").parent().parent();
var selected=$("#up tr td input:checked");
if(selected.length===0){
alert("请选择要解除装车的产品!");
return false;
}else if(confirm("确定要对所选产品进行解除装车操作吗?")){
for(var i=0;i<selected.length;i++){
checkValue += selected[i].value;
checkValue += "!";
$("#up tr td input:checked[value="+alldatas[i].value+"]").parent().parent().remove();
}
alert(selected.length);
alert(checkValue);
$("#up tr td input:checked").attr("disabled",true);
$("#up tr td input:checked").attr("checked",false);
$.each(alldatas,function(i,value){
$("#down").append(alldatas[i]);
});
var checkV = encodeURIComponent(checkValue);
window.location.href="unTrucked.action?check="+checkV;
return true;
}else{
return false;
}
}
注:up是待移动数据所在的table的ID