<table summary="Details">
<colgroup>
<col style="width: 22em" />
<col style="width: 22em" />
</colgroup>
<tbody>
<tr>
<th scope="row" align="left"><label for="paymenyType"
class="smallLabel">Paymeny Type</label></th>
<td><html:select property="paymenyType"
tabindex="1040" styleId="paymenyType">
<option value="">Please Select</option>
<option value="type1">Type1</option>
<option value="type2">Type2</option>
<option value="type3">Type3</option>
</html:select></td>
</tr>
...............................
...............................
</tbody>
</table>
when Type1 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
<option value="Yearly">Yearly</option>
</html:select></td>
</tr>
<tr>
<th scope="row" align="left"><label for="Percentage"
class="smallLabel">Percentage</label></th>
<td><html:text property="percentage" styleId="Percentage" size="5"
maxlength="5" /></td>
</tr>
<tr>
<th scope="row" align="left"><label for="PaymentDate"
class="smallLabel">Date of First Payment(<abbr
title="day month year (4 digit)">dd/mm/yyyy</abbr>)</label></th>
<td><html:text property="paymentDate" styleId="PaymentDate"
size="10" maxlength="10" /></td>
</tr>
when Type2 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
<option value="Yearly">Yearly</option>
</html:select></td>
</tr>
<tr>
<th scope="row" align="left"><label for="amount"
class="smallLabel">Amount</label></th>
<td><html:text property="amount" styleId="amount" size="5"
maxlength="5" /></td>
</tr>
<tr>
<th scope="row" align="left"><label for="PaymentDate"
class="smallLabel">Date of First Payment(<abbr
title="day month year (4 digit)">dd/mm/yyyy</abbr>)</label></th>
<td><html:text property="paymentDate" styleId="PaymentDate"
size="10" maxlength="10" /></td>
</tr>
when Type3 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
</html:select></td>
</tr>
can you please tell me how can i achieve this using javascript?
i need to put these table rows dynamically based on the selected value in the dropdown list which are Type1,Type2 and Type3.
any ideas?
i will be waiting for reply.
regards and thanks in advance
<colgroup>
<col style="width: 22em" />
<col style="width: 22em" />
</colgroup>
<tbody>
<tr>
<th scope="row" align="left"><label for="paymenyType"
class="smallLabel">Paymeny Type</label></th>
<td><html:select property="paymenyType"
tabindex="1040" styleId="paymenyType">
<option value="">Please Select</option>
<option value="type1">Type1</option>
<option value="type2">Type2</option>
<option value="type3">Type3</option>
</html:select></td>
</tr>
...............................
...............................
</tbody>
</table>
when Type1 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
<option value="Yearly">Yearly</option>
</html:select></td>
</tr>
<tr>
<th scope="row" align="left"><label for="Percentage"
class="smallLabel">Percentage</label></th>
<td><html:text property="percentage" styleId="Percentage" size="5"
maxlength="5" /></td>
</tr>
<tr>
<th scope="row" align="left"><label for="PaymentDate"
class="smallLabel">Date of First Payment(<abbr
title="day month year (4 digit)">dd/mm/yyyy</abbr>)</label></th>
<td><html:text property="paymentDate" styleId="PaymentDate"
size="10" maxlength="10" /></td>
</tr>
when Type2 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
<option value="Yearly">Yearly</option>
</html:select></td>
</tr>
<tr>
<th scope="row" align="left"><label for="amount"
class="smallLabel">Amount</label></th>
<td><html:text property="amount" styleId="amount" size="5"
maxlength="5" /></td>
</tr>
<tr>
<th scope="row" align="left"><label for="PaymentDate"
class="smallLabel">Date of First Payment(<abbr
title="day month year (4 digit)">dd/mm/yyyy</abbr>)</label></th>
<td><html:text property="paymentDate" styleId="PaymentDate"
size="10" maxlength="10" /></td>
</tr>
when Type3 is selected the following code should appear between the above dotted lines:
<tr>
<th scope="row" align="left"><label for="payFrequency"
class="smallLabel">Pay Frequency</label></th>
<td><html:select property="payFrequency"
tabindex="1040" styleId="payFrequency">
<option value="">Please Select</option>
<option value="daily">Daily</option>
<option value="monthly">Monthly</option>
</html:select></td>
</tr>
can you please tell me how can i achieve this using javascript?
i need to put these table rows dynamically based on the selected value in the dropdown list which are Type1,Type2 and Type3.
any ideas?
i will be waiting for reply.
regards and thanks in advance