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
Expand|Select|Wrap|Line Numbers
- <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:
Expand|Select|Wrap|Line Numbers
- <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.