dontpunchme
Programmer
I have a form that has a dropdown box in it and a checkbox. When a certain item in the dropdown is selected I want the checkbox to change to "checked".
Any ideas?
Thanks.
Any ideas?
Thanks.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script>
function CheckIt()
{
if(document.FormName.drp.options[document.FormName.drp.selectedIndex].value=="THE_VALUE")
{
document.FormName.Checkbox.checked = true;
document.FormName.Checkbox.disabled = true;
}
else
{
document.FormName.Checkbox.disabled = false;
}
}
</script>