81,092
社区成员
发帖
与我相关
我的任务
分享
var txtlist= document.getElementsByName("name");
var hid=document.forms[0].names;
var names = "";
var txtlist1= document.getElementsByName("sex");
var hid1=document.forms[0].sexs;
var sexs = "";
var txtlist2= document.getElementsByName("mobile");
var hid2=document.forms[0].mobiles;
var mobiles = "";
var txtlist3= document.getElementsByName("permail");
var hid3=document.forms[0].permails;
var permails = "";
var txtlist4= document.getElementsByName("zw");
var hid4=document.forms[0].zws;
var zws = "";
for(var i=0;i <txtlist.length;i++){
names+=txtlist[i].value+"/";
sexs+=txtlist1[i].value+"/";
mobiles+=txtlist2[i].value+"/";
permails+=txtlist3[i].value+"/";
zws+=txtlist4[i].value+"/";
}
hid.value=names;
hid1.value=sexs;
hid2.value=mobiles;
hid3.value=permails;
hid4.value=zws;