Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get response from form jquery

$('#form').submit(function(){
    $.ajax({
      url: $('#form').attr('action'),
      type: 'POST',
      data : $('#form').serialize(),
      success: function(){
        console.log('form submitted.');
      }
    });
    return false;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #response #form #jquery
ADD COMMENT
Topic
Name
8+9 =