<%@ page pageEncoding="UTF-8"%><%@ include file="/common/import.jsp" %> <% @ include file="/common/header.jsp" %> align=center border=0> < td height=10 align=center> 股东名 证照号番号 出资额 出资率(%) < ;/tr> < ;/td> onClick ="save()" value="保存&转入下一步"> tr><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> varindex=newTr.rowIndex;<br> //alert(index);<br> <br> //4 つの列を追加します <br> <br> var newTd0 = newTr.insertCell(-1);<br> <br> var newTd1 = newTr.insertCell(-1);<br> <br> var newT d2 = 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 <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>