TonyCable
05-12-2009, 04:53 PM
Hi
Wondering if someone can help. Below is the code that I have so far. What I’m after doing is when a number is selected on the dropdown box that the number of rows with the text boxes in the table below.
In other words, if the number three is selected from the drop down, there would be three rows in the table with text boxes in. if 5 is selected then 5 rows etc.
Hope that this makes sense and hope that someone can help me with this.
Thanks
<html>
<head>
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="/itmedia/Style/style.css">
</head>
<body>
<table width="278" border="0">
<tr>
<td width="220"><h3>New Equipment</h3></td>
<td width="48"><select name="select2">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
</table>
<table width="59%" id="table1">
<tr>
<td width="70"> </td>
<td width="151">
<p align="center">PC Number</td>
<td width="150">
<p align="center">MO Number</td>
<td width="150">
<p align="center">PR Number</td>
<td width="151">
<p align="center">AX Number</td>
</tr>
<tr>
<td>Asset Tag</td>
<td width="151">
<p>
<input type="text" name="PCNumberNew1" size="21">
</p></td>
<td width="150">
<p>
<input type="text" name="MONumberNew1" size="21">
</p></td>
<td width="150">
<p>
<input type="text" name="PRNumberNew1" size="21">
</p></td>
<td width="151">
<p>
<input type="text" name="AXNumberNew1" size="21">
</p></td>
</tr>
</table>
</body>
</html>
Wondering if someone can help. Below is the code that I have so far. What I’m after doing is when a number is selected on the dropdown box that the number of rows with the text boxes in the table below.
In other words, if the number three is selected from the drop down, there would be three rows in the table with text boxes in. if 5 is selected then 5 rows etc.
Hope that this makes sense and hope that someone can help me with this.
Thanks
<html>
<head>
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="/itmedia/Style/style.css">
</head>
<body>
<table width="278" border="0">
<tr>
<td width="220"><h3>New Equipment</h3></td>
<td width="48"><select name="select2">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select></td>
</tr>
</table>
<table width="59%" id="table1">
<tr>
<td width="70"> </td>
<td width="151">
<p align="center">PC Number</td>
<td width="150">
<p align="center">MO Number</td>
<td width="150">
<p align="center">PR Number</td>
<td width="151">
<p align="center">AX Number</td>
</tr>
<tr>
<td>Asset Tag</td>
<td width="151">
<p>
<input type="text" name="PCNumberNew1" size="21">
</p></td>
<td width="150">
<p>
<input type="text" name="MONumberNew1" size="21">
</p></td>
<td width="150">
<p>
<input type="text" name="PRNumberNew1" size="21">
</p></td>
<td width="151">
<p>
<input type="text" name="AXNumberNew1" size="21">
</p></td>
</tr>
</table>
</body>
</html>