LyndonOHRC
Programmer
I have a select dropdown where the first (and default selected) element is always blank.
If a user checks a checkbox I have on the form can the select be set back to that top element?
Lyndon
If a user checks a checkbox I have on the form can the select be set back to that top element?
Lyndon
Code:
<form name="myform" me
<form name="myform" method="post" action="nextpage.cfm">
Tax Free:
<input type="Checkbox" name="NoTax" onclick="if (this.checked) SetDropDownToZero()">
<br>
Tax Rate:
<select name="TaxRate">
<option value="0" selected> </option>
<option value="8.5">Oklahoma City</option>
<option value="8.87">Norman</option>
</select>
</form>
<script type="text/javascript">
function SetDropDownToZero()
{
//I have no idea
}
</script>