Answers for "bootstrap 4 form validator with jquery"

0

bootstrap 4 form validator with jquery

$(document).ready(function() {
  $("#submitButton").click(function() {
    //Fetch form to apply custom Bootstrap validation
    var form = $("#signup-form");

    if (form[0].checkValidity() === false) {
      event.preventDefault();
      event.stopPropagation();
    }
    
    form.addClass('was-validated');

    //Make ajax call here
  })
})
Posted by: Guest on May-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language