Answers for "submit form on click jquery"

3

when a form is subbmited jquery

$("#myform").submit(function(e) {
 })
Posted by: Guest on July-03-2020
0

jquery on form submit call function

$(document).ready(function() {
  $("your form selector here").submit(function() {


    // do the extra stuff here
    $.ajax({
     type: "POST",
      url: "mail.php",
      data: $(this).serialize(),
      success: function() {
        $('.simple-sucess').fadeIn(100).show();
        $('.contact_form').fadeOut(100).hide();
        $('.simple_error').fadeOut(100).hide();

       }
    })

  })
})
Posted by: Guest on December-08-2020

Code answers related to "submit form on click jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language