TextBoxを配列化する。
<% int idx = 0; %>
<c:forEach var="i" begin="0" end="23" varStatus="loopIndex">
<html:text name="myForm" property='<%= "txt[" + idx + "]" %>' />
<% idx++; %>
</c:forEach>
配列化したTextBoxの値をJavaScriptで取得する。
data = myForm/elements['txt[0]'].value;
Loopしながら取得。
for(icnt = 0 ; icnt < 5 ; icnt++){
data = myForm.elements['txt[' + icnt + ']'].value;
}
このページへのコメント
kVY5HC Really informative blog.Thanks Again. Great.
IXc0pY Major thanks for the article post.Much thanks again. Great.