Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increment table row id by 1

Status
Not open for further replies.

cylly

Programmer
Oct 17, 2002
23
CA
I would like to increment the table row id by 1 each time I loop through my iterator to create my table. How do I do this?
Here is my table.
<TABLE border=1>
<TR>
<b>
<TH>Table Name</TH>
<TH>Description</TH>
</b>
</TR>
<p font-size=10>
<pr:iterator results=&quot;tableList&quot; >
<TR id=???? onClick=&quot;highlightTR('#c9cc99','cc3333',this.id);&quot;>
<TD><pr:field name=&quot;table_nm&quot;/></TD>
<TD><pr:field name=&quot;table_descv_txt&quot;/></TD>
<TD>
<form method=get name=myform action=&quot;TableUpdate.jsp&quot;>
<input type=hidden name=tName value=&quot;<pr:field name=&quot;table_nm&quot;/>&quot;>
<input type=hidden name=tDesc value=&quot;<pr:field name=&quot;table_descv_txt&quot;/>&quot;>
<input type=hidden name=tNum value=&quot;<pr:field name=&quot;generic_table_num&quot;/>&quot;>
</form>
</TD>
</TR>
</pr:iterator>
</TABLE>

I would like to get the value of tName, tDesc and tNum depending on the table row id.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top