0

I created a form that posts data via Ajax. I would like to get the results/return value of my Ajax call within a submitHandler:

My code is below:

      submitHandler: function(form) {



             $.ajax({

                url: '/checkaddress',
                type: 'post',
                dataType: 'json',
                data: $('form#proteinForm').serialize(),
                success: function(data) {
                    console.log(data.delivery_line_1);

                }

              });


      }
Mariton
  • 601
  • 2
  • 12
  • 28

0 Answers0