I'm trying to get success event but it works only for error: event Don't know what is error.
$(document).ready(function() {
  $.ajax({
    type: "POST",
    url: "http://localhost/Register/intl-tel-input-master/next.php",
    data: {
      arguments: [fname, lname, email, Numb, pass, confirm]
    },
    dataType: 'JSON',
    complete: function(data) {
      if (('error' in data)) {
        this_form.find('.error-message').slideDown();
      } else {
        alert(data);
        this_form.find('.sent-message').slideDown();
      }
    }
  });
  // return false;
});
 
     
    