Hello everyone, I am currently trying to make something where when you hit the submit button on a form it will have a pop up message saying "hello". My ultimate goal is to make this form update multiple tables but as of now this is what I have.
if (window.jQuery) {
(function ($) {
$("#InsertButton").on('click', function () {
alert("Hello");
$("#statuscode").val(717640002);
return true;
});
}(window.jQuery));
}
Each time I submit the form it doesn't work. I have no idea what I'm doing wrong. Does anyone have any idea what I might be doing wrong?
if (submitButton) {
submitButton.addEventListener('click', function(event) {
alert("Submit button clicked! Form is being submitted...");
});
}
});
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.