<script>
$('#modal_form1').submit(function(){
var form = $(this);
var data = form.serialize();
$.ajax({
type: "POST",
url: "mailer/smart3.php",
data: data,
beforeSend: function() {
form.find('input[type="submit"]').attr('disabled', 'disabled');
}
}).done(function() {
form.find("input").val("");
$('#callModal1').modal('hide');
window.location = "https://12345";
$("#modal_form1").trigger("reset");
});
return false;
});
</script>
var form = $(this);
var data = form.serialize();
form.find('input[type="submit"]').attr('disabled', 'disabled');
$.ajax({
type: "POST",
url: "mailer/smart3.php",
data: data,
}).done(function() {
form.find("input").val("");
$('#callModal1').modal('hide');
window.location = "https://12345";
$("#modal_form1").trigger("reset");
});
return false;
});