I am trying to sort a dropdownlist (selector) in html.
I have two lists, a pre-selection which then should be used to define the content of the secont list.
A short code sample:
<!doctype html>
<html class=>
<head>
<meta charset=utf-8>
<meta name=viewport content=width=device-width, initial-scale=1>
</head>
<body>
<table width=100% border=0>
<tr>
<td> </td>
<td>Product</td>
<td><select name=product id=product width=300 style=width: 300px>
<option></option>
<option id=TLX>TLX</option>
<option id=FLX>FLX</option>
<option id=MLX>MLX</option>
</select></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>Power</td>
<td><select name=power id=power width=300 style=width: 300px>
<option></option>
<option name=TLX>6</option>
<option name=TLX>8</option>
<option name=TLX>10</option>
<option name=TLX>12</option>
<option name=TLX>15</option>
<option name=FLX>6</option>
<option name=FLX>8</option>
<option name=FLX>10</option>
<option name=FLX>12</option>
<option name=FLX>15</option>
<option name=FLX>17</option>
<option name=MLX>30</option>
<option name=MLX>40</option>
<option name=MLX>60</option>
</select></td>
<td> </td>
</tr>
</table>
</body>
</html>
I want to b able to select the product and then must the power list be sortet accordingly.
For instance if TLX is choosen then only 6, 8, 10, 12, and 15 are shown as possibilities in the second list.