var foo = $('#aspnetForm').serializeJSON().replace(regex, subst);
$(".submit").click(function () {
$.ajax({
type: "POST",
dataType: "json",
url: " /Handlers/SendOrderEmail.ashx",
data: foo,
contentType: "application/json; charset=utf-8",
success: function (data) {
alert("yes"); },
error: function (e) {
alert("no");
}
});
})
var foo = $('#aspnetForm').serializeJSON().replace(regex, subst);
$(".submit").click(function () {
$.ajax({
type: "POST",
dataType: "json",
url: " /Handlers/SendOrderEmail.ashx",
data: json: foo,
contentType: "application/json; charset=utf-8",
success: function (data) {
alert("yes"); },
error: function (e) {
alert("no");
}
});
})