Jump to content

Checkbox on Submit if statement


Recommended Posts

You can have the code below:


 

<script>
document.getElementById("Submit").onmouseover = function(){

if (document.getElementById('Dropdown ID').value == "National"){
document.getElementById('InsertRecordYesNo').checked = true;
}else{
document.getElementById('InsertRecordYesNo').checked = false;
}


}
</script>

 

 

InsertRecordYesNo  is the ID of checkbox and Dropdown ID is the ID of dropdown. This function will fire when you hoverover Submit button,

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...