I have this script and when sub-menu is selected in the select, it blocks the user from entering text into the value field.


<select name="type" style="border: 1px solid #000000; margin: 0px; " onchange="this.form.value.disabled=(this.selectedIndex == 1);">
<option value="a">Option</option>
<option value="b">Sub-Menu</option>
<option value="c">Sub-Menu1</option>

</select>
Name: <input name="name" style="width: 50px; border: 1px solid #000000;">
Value: <input name="value" style="width: 50px; border: 1px solid #000000;">




I need to alter this in two ways.

1. Make it so that you can have more than one 'option' in the select that will block out the text field

2. Make more text fields like 'value'


anyone have any idea on how I could do this?