Whether you are pregnant or nursing, this is a very special time for the mother, baby, and family. And of course, you want to make all the healthiest choices for you and your little bundle of joy. While some of the choices are quite obvious, like quit smoking (if you haven’t already), no alcohol, noRead more about Spices And Supplements To Avoid While Pregnant And Nursing[…]
This field is required.
');
$n("#filed_5a6b9a63b887e_name_Nknewsletter_space").css( { marginBottom : "0px" } );
emailAdd=false;
}
if(emailAdd!=""){
var element=$n("#filed_5a6b9a63b887e_youremail").next().next();
if(emailAdd.toLowerCase()=='Email'.toLowerCase()){
$n(element).html('This field is required.
');
isvalidEmail=false;
$n("#filed_5a6b9a63b887e_email_Nknewsletter_space").css( { marginBottom : "0px" } );
}else{
var JsRegExPatern = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
if(JsRegExPatern.test(emailAdd)){
isvalidEmail=true;
$n("#filed_5a6b9a63b887e_email_Nknewsletter_space").css( { marginBottom : "20px" } );
$n(element).html('');
}else{
var element=$n("#filed_5a6b9a63b887e_youremail").next().next();
$n(element).html('Please enter valid email address.
');
$n("#filed_5a6b9a63b887e_email_Nknewsletter_space").css( { marginBottom : "0px" } );
isvalidEmail=false;
}
}
}else{
var element=$n("#filed_5a6b9a63b887e_yourname").next().next();
$n(element).html('This field is required.
');
$n("#filed_5a6b9a63b887e_email_Nknewsletter_space").css( { marginBottom : "0px" } );
isvalidEmail=false;
}
if(isvalidName==true && isvalidEmail==true){
$n("#filed_5a6b9a63b887e_name_Nknewsletter_space").css( { marginBottom : "20px" } );
$n("filed_5a6b9a63b887e_email_Nknewsletter_space").css( { marginBottom : "20px" } );
$n("#filed_5a6b9a63b887e_AjaxLoader").show();
$n('#filed_5a6b9a63b887e_mysuccess_msg').html('');
$n('#filed_5a6b9a63b887e_mysuccess_msg').hide();
$n('#filed_5a6b9a63b887e_myerror_msg').html('');
$n('#filed_5a6b9a63b887e_myerror_msg').hide();
var nonce ='3dec0dfcea';
var url = 'https://grofafo.org/wp-content/plugins/email-subscribe/';
var email=$n("#filed_5a6b9a63b887e_youremail").val();
var name =$n("#filed_5a6b9a63b887e_yourname").val();
var str="action=store_email&email="+email+'&name='+name+'&sec_string='+nonce;
$n.ajax({
type: "POST",
url: 'https://grofafo.org/wp-admin/admin-ajax.php',
data:str,
async:true,
success: function(msg){
if(msg!=''){
var result=msg.split("|");
if(result[0]=='success'){
$n("#filed_5a6b9a63b887e_AjaxLoader").hide();
$n('.filed_5a6b9a63b887e_mysuccess_msg').html(result[1]);
$n('.filed_5a6b9a63b887e_mysuccess_msg').show();
setTimeout(function(){
$n('#filed_5a6b9a63b887e_mysuccess_msg').hide();
$n('#filed_5a6b9a63b887e_mysuccess_msg').html('');
$n("#filed_5a6b9a63b887e_youremail").val('Email');
$n("#filed_5a6b9a63b887e_yourname").val('Name');
},2000);
}
else{
$n("#filed_5a6b9a63b887e_AjaxLoader").hide();
$n('#filed_5a6b9a63b887e_myerror_msg').html(result[1]);
$n('#filed_5a6b9a63b887e_myerror_msg').show();
setTimeout(function(){
$n('#filed_5a6b9a63b887e_myerror_msg').hide();
$n('#filed_5a6b9a63b887e_myerror_msg').html('');
},2000);
}
}
}
});
}
}