Jump to content

Checkbox on Submit if statement

Recommended Posts

You can have the code below:


document.getElementById("Submit").onmouseover = function(){

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




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


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

  • Create New...