iterating <tr>

liunx

Guest
Hi all!<br />
<br />
I have this <tr><td> in my table:<br />
<tr><br />
<td><br />
<select name="opt"><br />
<option>AAA</option><br />
<option>BBB</option><br />
<option>CCC</option><br />
</select><br />
</td><br />
<td><br />
<input type="radio" name="operand">Add<br><br />
<input type="radio" name="operand">Subtract<br> <br />
</td><br />
<tr><br />
<br />
I have 3 items in my combo box namely AAA, BBB and CCC. I need to have 3 lines in my table exactly like this one, instead of hard-coding it, how do I make a loop that increases the table line by referring to the number of items in the combobox?<br />
<br />
Actually, the items inside the combo box are derived from a database so it varies from time to time. I just hardcoded it here to make it clearer..<br />
<br />
Please help me out. Thanks in advance<!--content-->I think you would need to use Javascript or some kind of language to do that.<!--content-->
 
Back
Top