').text(html).html(); $.ajax({ type: 'post', dataType: 'json', data: { id: "@Url[1]" } , url: '/ToGet', success: function(data) { if (data.s == "1") { console.log(data.d); $.ajax({ type: 'post', dataType: 'json', data: { Subject: "İletişim Formu", Body: '' + html + '', To: data.d, bs: bs, validate: status[5] } , url: '/SendMail', success: function(data) { if (data.s == "1") { if (confirm("Başvurunuz elimize ulaştı en kısa sürede tarafınıza dönüş yapılacaktır.")) { location.reload(); } else { location.reload(); } } else { bs += 1; alert("Başvuru işleme esnasında hata oluştu.Lütfen tekrar deneyiniz."); $("#btnGonderC1").attr({ 'disabled': false } ).val('Gönder'); } } } ); } } } ); } else { bs += 1; alert("Başvuru işleme esnasında hata oluştu.Lütfen tekrar deneyiniz."); $("#btnGonderC1").attr({ 'disabled': false } ).val('Gönder'); } } } ); }; formcontrol(".sky-form"); } );