I am new to javascripts, I am trying to change the codes in a form that includes radio buttons and a drop down menu, but I would like a gray drop-down list when I select only one of the radio buttons (electronic). p>
Physical (switch) Image (switch)
Electronic (radio button)
Number of boxes [drop-down list]
I have 3 switches over the number of boxes (dropdown menu). I want the dropdown menu selection box to be grayed out when selecting "Electronic" (radio button)
<input type="radio" name="radio" id="physical" value="physical"> <label for="physical">Physical<br> <input type="radio" name="radio" id="image" value="image"> Image <br> <input type="radio" name="radio" id="electronic" value="electronic"> Electronic
I want it to be grayed out when choosing electronic over
<select name="NumberofBoxes" onchange="javascript:this.form.action='RecordsTransmittalForm.asp';this.form.submit();"> <option value="">--select one--</option> <% for i = 1 to 100 %> <%if clng(NumberofBoxes) = i then%> <option value="<%=i%>" selected><%=i%></option> <%else%> <option value="<%=i%>"><%=i%></option> <%end if%> <% next %> </select>
source share