首页 > IT职业 > IT职场 > jQuery实现下移功能
| 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 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 |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2317/viewspace-2813081/ ,如需转载,请注明出处,否则将追究法律责任。