You are on page 1of 4

<!

-- nenad -->
<script>
$(document).ready(function(){

$("#monthly").click(function(){
$("#monthPrice").show();
$("#yearPrice").hide();
$(this).removeClass('notselected');
$(this).addClass('selected');
$("#yearly").removeClass('selected');
$("#yearly").addClass('notselected');
return false;
});

$("#yearly").click(function(){
$("#yearPrice").show();
$("#monthPrice").hide();
$(this).removeClass('notselected');
$(this).addClass('selected');
$("#monthly").removeClass('selected');
$("#monthly").addClass('notselected');
return false;
});

var ee=$('input:radio[name=yearvalues]:checked').val();
$("#annualprice").html(ee);

$("input[name='yearvalues']").change(function(){
var ee=$('input:radio[name=yearvalues]:checked').val();
$("#annualprice").html(ee);
$(".success-msg").hide();
xx=$('input[type=radio][name=yearvalues]:checked').attr('id');

if(xx=="5img") {
$("#year1000").hide();
$("#year500").hide();
$("#year150").hide();
$("#year100").hide();
$("#year50").hide();
$("#year5").show();

if(xx=="50img") {
//alert("radi");
$("#year1000").hide();
$("#year500").hide();
$("#year150").hide();
$("#year100").hide();
$("#year50").show();
$("#year5").hide();
}
if(xx=="100img") {
//alert("radi100");
$("#year1000").hide();
$("#year500").hide();
$("#year150").hide();
$("#year100").show();
$("#year50").hide();
$("#year5").hide();
}

if(xx=="150img") {
$("#year1000").hide();
$("#year500").hide();
$("#year150").show();
$("#year100").hide();
$("#year50").hide();
$("#year5").hide();

}
if(xx=="500img") {
$("#year1000").hide();
$("#year500").show();
$("#year150").hide();
$("#year100").hide();
$("#year50").hide();
$("#year5").hide();
}
if(xx=="1000img") {
$("#year1000").show();
$("#year500").hide();
$("#year150").hide();
$("#year100").hide();
$("#year50").hide();
$("#year5").hide();
}

});

var tt=$('input:radio[name=monthvalues]:checked').val();
$("#mtprice").html(tt);

$("input[name='monthvalues']").change(function(){
$(".success-msg").hide();
var tt=$('input:radio[name=monthvalues]:checked').val();
$("#mtprice").html(tt);
mm=$('input[type=radio][name=monthvalues]:checked').attr('id');
if(mm=="m5img") {
$("#month1000").hide();
$("#month500").hide();
$("#month150").hide();
$("#month100").hide();
$("#month50").hide();
$("#month5").show();
// $("#monthurl").attr("href",
"https://stockphoto.com/subscriptions/NDExZjViY2ZiMGVk/1-month-5-images/");
}
if(mm=="m50img") {
//alert("radi");
$("#month1000").hide();
$("#month500").hide();
$("#month150").hide();
$("#month100").hide();
$("#month50").show();
$("#month5").hide();
// $("#monthurl").attr("href",
"https://stockphoto.com/subscriptions/OTIxZjViY2ZiMGVk/1-month-50-images/");
}
if(mm=="m100img") {
//alert("radi100");
$("#month1000").hide();
$("#month500").hide();
$("#month150").hide();
$("#month100").show();
$("#month50").hide();
$("#month5").hide();
//$("#monthurl").attr("href",
"https://stockphoto.com/subscriptions/MTExZjViY2ZiMGVk/100-images-1-month/");
}
if(mm=="m150img") {
$("#month1000").hide();
$("#month500").hide();
$("#month150").show();
$("#month100").hide();
$("#month50").hide();
$("#month5").hide();
//$("#monthurl").attr("href",
"https://stockphoto.com/subscriptions/MzExZjViY2ZiMGVk/150-images-1-month/");
}
if(mm=="m500img") {
$("#month1000").hide();
$("#month500").show();
$("#month150").hide();
$("#month100").hide();
$("#month50").hide();
$("#month5").hide();
// $("#monthurl").attr("href",
"https://stockphoto.com/subscriptions/MjExZjViY2ZiMGVk/500-images-1-month/");
}
if(mm=="m1000img") {
$("#month1000").show();
$("#month500").hide();
$("#month150").hide();
$("#month100").hide();
$("#month50").hide();
$("#month5").hide();
// $("#monthurl").addClass("workboxLink workboxLinkAttach link-
btn large block");
// $("#monthurl").attr("href",
"https://www.stockphoto.com/subscriptions/NjQxZjViY2ZiMGVk/1-month-1000-images/");

});

var cc=$('input:radio[name=creditvalues]:checked').val();
$("#cprice").html(cc);

$("input[name='creditvalues']").change(function(){
var cc=$('input:radio[name=creditvalues]:checked').val();
$("#cprice").html(cc);
//alert(cc);
$(".success-msg").hide();
kk=$('input[type=radio][name=creditvalues]:checked').attr('id');

if(kk=="k1") {
$("#credit4").hide();
$("#credit3").hide();
$("#credit2").hide();
$("#credit1").show();

if(kk=="k2") {
$("#credit4").hide();
$("#credit3").hide();
$("#credit2").show();
$("#credit1").hide();
}
if(kk=="k3") {
$("#credit4").hide();
$("#credit3").show();
$("#credit2").hide();
$("#credit1").hide();
}

if(kk=="k4") {
$("#credit4").show();
$("#credit3").hide();
$("#credit2").hide();
$("#credit1").hide();
}
});
});

</script>

You might also like