Hi
I'm trying to show a table based on what choice is made from a drop down box.the table will have two columns and
the selected value of the table will be the number of rows of the table with additional row for heading of tables
i.e. if Choice 4 is selected I'd like to display a new <tr> with the
following:
the values of the table will be saved in database after submit.
I want to do this only by using javascript and html and simply but can't achieve what I'm looking for.
I'm trying to show a table based on what choice is made from a drop down box.the table will have two columns and
the selected value of the table will be the number of rows of the table with additional row for heading of tables
Code:
<select name="dropdown" size="1"> <option selected value="">Please make a selection</option> <option value="10">Choice 10</option> <option value="8">Choice 8</option> <option value="4">Choice 4</option> </select>
following:
Code:
<tr> <th> Flat No.</th> <th> Floor No.</th> </tr> <tr> <td></td> <td></td> </tr> <tr> <td></td> <td></td> </tr> <tr> <td></td> <td></td> </tr> <tr> <td></td> <td></td> </tr>
the values of the table will be saved in database after submit.
I want to do this only by using javascript and html and simply but can't achieve what I'm looking for.
Comment