<%@ page pageEncoding="UTF-8"%><%@ include file="/common/import.jsp" %> <%@ include file="/common/header.jsp" %> align=center border=0> 股东名称 证照号码 出资额 出资比例(%) onClick="save()" value="保存&转入下一步"> <br> function save(){<br> if(!confirm("确实要保存并转入下一步吗?")){<br> return;<br> }<br> getInfo();<br> //qy_info.submit();<br> }<br> function addRow(){<br> <br> //添加一行<br> <br> var newTr = document.getElementById("tbl_gd").insertRow(-1);<br> var index=newTr.rowIndex;<br> //alert(index);<br> <br> //添加四列<br> <br> var newTd0 = newTr.insertCell(-1);<br> <br> var newTd1 = newTr.insertCell(-1);<br> <br> var newTd2 = newTr.insertCell(-1);<br> <br> var newTd3 = newTr.insertCell(-1);<br> <br> <br> //设置列内容和属性<br> <br> newTd0.innerHTML ="<input name=\"name"+index+"\" id=\"name"+index+"\" value=\"\">"; <br> <br> newTd1.innerHTML = "<input name=\"cardNo"+index+"\" id=\"cardNo"+index+"\" value=\"\">";<br> newTd2.innerHTML = "<input name=\"moneyInvested"+index+"\" id=\"moneyInvested"+index+"\" value=\"\">";<br> newTd3.innerHTML = "<input name=\"percentage"+index+"\" id=\"percentage"+index+"\" value=\"\">";<br> }<br> <br> function delRow(){<br> if(document.getElementById("tbl_gd").rows.length>2){<br> document.getElementById("tbl_gd").deleteRow(-1);<br> }<br> }<br> function getInfo(){<br> var infoStr="";<br> alert(name2.value);<br> alert(tbl_gd.rows.length);<br> for(var i=1;i<=tbl_gd.rows.length-1;i++){<br/> <br/> infoStr+=document.all.item("name"+i).value+"::";<br/> infoStr+=document.all.item("cardNo"+i).value+"::";<br/> infoStr+=document.all.item("moneyInvested"+i).value+"::";<br/> infoStr+=document.all.item("percentage"+i).value+";;";<br/> }<br/> <br/> alert(infoStr);<br/> }<br/>