Joelo
MIS
- Sep 27, 2003
- 61
Hello everyone,
Please I want to automatically populate my dropdown list based on the value of a textbox onLoad of the my FORM....
both textbox and dropdown list are populated by my database
i.e
nos. items
1 gum
1 gum1
1 gum4
2 bolt
2 bolt2
If the value of my textbox(nos.) is 1 onLoad of my FORM, my dropdown list will be populated with
<code>
<select name="list" size="1">
<option>gum</option>
<option>gum1</option>
<option>gum4</option>
</select>
</code>
and If the value of my textbox(nos.) is 2 onLoad of my FORM, my dropdown list will be populated with
<code>
<select name="list" size="1">
<option>bolt</option>
<option>bolt2</option>
</select>
</code>
and so on........
please could anyone help me out
Please I want to automatically populate my dropdown list based on the value of a textbox onLoad of the my FORM....
both textbox and dropdown list are populated by my database
i.e
nos. items
1 gum
1 gum1
1 gum4
2 bolt
2 bolt2
If the value of my textbox(nos.) is 1 onLoad of my FORM, my dropdown list will be populated with
<code>
<select name="list" size="1">
<option>gum</option>
<option>gum1</option>
<option>gum4</option>
</select>
</code>
and If the value of my textbox(nos.) is 2 onLoad of my FORM, my dropdown list will be populated with
<code>
<select name="list" size="1">
<option>bolt</option>
<option>bolt2</option>
</select>
</code>
and so on........
please could anyone help me out