I have a form on FormAssembly, and I would like to stop someone submitting the form if they select the ‘No’ Radio Button for the question ‘Are you an employer?’. I have put what I have so far in a jsfiddle:



$(document).ready(function() {
 $('input#tfa_1904').click(function() {
  if ($('#tfa_1904').is(':checked') {
    submitButton.disabled = true;
  else {
    submitButton.disabled = false;

Please forgive me, I am a super JS newbie! And many thank you’s in advance! :)

Read more here: Stop form submission if radio button is checked


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: