I am trying to set a variable from a value in a table that is loaded dynamically.
Here is my table setup.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results="tableList" >
<TR id="<pr:field name='table_nm'/>" onClick="highlightTR('#c9cc99','cc3333',this.id);">
<TD><pr:field name="table_nm"/></TD>
<TD><pr:field name="table_descv_txt"/></TD>
<TD>
<form method=get name=myform action="TableUpdate.jsp">
<input type=hidden name=tName value="<pr:field name="table_nm"/>">
<input type=hidden name=tDesc value="<pr:field name="table_descv_txt"/>">
<input type=hidden name=tNum value="<pr:field name="generic_table_num"/>">
</form>
</TD>
</TR>
</pr:iterator>
</TABLE>
I am trying to get the values of tName, tDesc and tNum depending on the table row id. How do I do this in script?
Thanks.
Here is my table setup.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results="tableList" >
<TR id="<pr:field name='table_nm'/>" onClick="highlightTR('#c9cc99','cc3333',this.id);">
<TD><pr:field name="table_nm"/></TD>
<TD><pr:field name="table_descv_txt"/></TD>
<TD>
<form method=get name=myform action="TableUpdate.jsp">
<input type=hidden name=tName value="<pr:field name="table_nm"/>">
<input type=hidden name=tDesc value="<pr:field name="table_descv_txt"/>">
<input type=hidden name=tNum value="<pr:field name="generic_table_num"/>">
</form>
</TD>
</TR>
</pr:iterator>
</TABLE>
I am trying to get the values of tName, tDesc and tNum depending on the table row id. How do I do this in script?
Thanks.