Skip to Content

Tuesday, November 12th, 2019

Aditya Bhat

Closed
by August 6, 2016 General

MOST POPULAR

Newsletter

“);
$(‘.error’).remove();
//$(‘.warning’).remove();
$(‘.newsletter’).focus();
//$(‘.success’).remove();
return false;
}
$.ajax({
type: “post”,
//url: “add_mail.php”,
url: “/tools/newsletter/”,
data: {email_address:email},

//if(resp.status==”success”){
success: function(data){
var resp=$.parseJSON(data);
if(resp.status==”success”){
$(“.success”).html(resp.message);
$(‘.button’).remove();
//$(‘.subcribe’).remove();
$(‘.warning’).remove();
}
else {
$(“.warning”).html(resp.message);
$(‘.success’).remove();
}

}
});
return false;
});
$( “.newsletter” ).keyup(function() {
var email = $(‘#email’).val();
if(email.length == 0)
{
$(‘.error’).remove();
$(‘.success’).remove();
$(‘.warning’).remove();
}
});
});

Previous
Next