Hello!
I want to disable the native SUBMIT button on a web form until the user selects YES to the field labeled Confirm Submission?.

I've added the following code into the Form Options tab of the web form step but it doesn't appear to be working:
$(document).ready(function(){
let currentVal = $("wsi_confirmsubmission1 option:selected").val();
//do some validation
if(currentVal == "866490001") {
$("#NextButton").prop( "disabled", true);
} else {
$("#NextButton").prop( "disabled", false);
}
$("#wsi_confirmsubmission1").change(function () {
// Get value of your trigger field
let currentVal = $("#wsi_confirmsubmission1 option:selected").val();
//do some validation
if(currentVal == "866490001") {
$("#NextButton").prop( "disabled", true);
} else {
$("#NextButton").prop( "disabled", false);
}
});
});
Help will be much appreciated! (Note: I'm not a developer and know little about javascript/jquery).