/** Check Username already Exists **/
$(".username").keyup(function(){
var username=$(this).val();
$.ajax({
url:"/usernameavailability/",
type:"post",
data:{username:username},
success:function(response)
{
if(response=="yes")
$(".usererror").text("Username already exists");
else
$(".usererror").text("Username available");
}
});
});
/** Check Username already Exists **/
$(".email").on("blur",function(){
var email=$(this).val();
$.ajax({
url:"/emailavailability/",
type:"post",
data:{email:email},
success:function(response1)
{
if(response1=="yes")
{
$(".emailerror").text("Email already exists");
$(".email").focus();
}
else if(response1=="no")
{
$(".emailerror").text("Email available");
}
}
});
});
function activateplan(value,id)
{
$(".totalamount").val(value);
$(".payerror").hide();
$(".basicplan").css({"background-color":"#fff","color":"#D4A03B"});
$("#"+id).css({"background-color":"#D4A03B","color":"#fff"});
}
$( ".fluentform_6" ).submit(function( event ) {
event.preventDefault();
$(".payerror").hide();
var totalamount=$(".totalamount").val();
});