0
我的代碼是這樣的 -如何填充值在陣列中的錶行的文本框
<table border="0" cellspacing="2" cellpadding="2" width="99%" id="subAccTable">
<tr>
<h2>Sub Accounts</h2>
</tr>
<tr>
<th>action </th>
<th>account</th>
<th>homeDir</th>
<th>primaryGroup</th>
</tr>
<tr>
<td><input type="hidden" name="vtierId" value="<%=vtierId%>" /></td>
<td><input type="text" name="subAcc"
value="<%= (String)subAccountUtil.getSubAccountName().get(i) %>"/></td>
<td><input type="text" name="subHomeDir"
value="<%= (String)subAccountUtil.getSubAccountHomeDir().get(i) %>"/></td>
<td><input type="text" name="subPriGroup"
value="<%= (String)subAccountUtil.getSubAccountPrimaryGroup().get(i) %>" /></td>
<script>
var saveObj = new ajax();
form.action.value = "populate";
var queryString = "action="+form.action.value+"&vtierSelectedValue="+vtierSelectedValue+"&vtierSelectedName="+vtierSelectedName ;
saveObj.onCompletion = function() {
var obj = saveObj.response;
alert(obj);
var objArr = obj.split(",");
}
saveObj.form = form;
saveObj.requestFile = "account.do";
saveObj.runAJAX(queryString);
</script>
現在我想用它包含1234值的數組objArr中的值這裏填入表中的行, 〜,tedtds,tedtds等 如何將此數組中的值填充到表格行中的文本框? 目前的文本框從我不想要的scriptlets的值?