jQuery('#frmSubmit').on('submit', function(e) { e.preventDefault(); jQuery('#msg').html('Quá trình đặt hàng sẽ hoàn tất trong vài giây...'); jQuery('#btnSubmit').attr('disabled', true); jQuery.ajax({ url: 'https://script.google.com/macros/s/AKfycbw_hmnHGQtOq5nh4fz4FBAxdbgJ2xu4dRMsXJaSYZyljepTKYVEhXlpjA6pgUcaEquK/exec', type: 'post', data: jQuery('#frmSubmit').serialize(), success: function(result) { jQuery('#frmSubmit')[0].reset(); //jQuery('#msg').html("Cảm ơn quý khách đã đặt hàng"); //jQuery('#btnSubmit').attr('disabled', false); window.location.href='https://ledplay.vn/cam-on/'; } }); });