js/script.js
//Check if monthly donation checkbox is checked or not

Check if monthly donation checkbox is checked or not
Check if monthly donation checkbox is checked or not
function checkmonthlydonation(){
        if($('input[type=checkbox][name=monthly]','#DonateForm').is(':checked')) {
            $('input[name=cmd]','#DonateForm').val('_xclick-subscriptions');
            $('input[name=a3]','#DonateForm').val($('input[name=amount]','#DonateForm').val());
        }else {
            $('input[name=cmd]','#DonateForm').val('_donations');
        }
    }
function checkmonthlydonation ( ) { if ( $ ( 'input[type=checkbox][name=monthly]' , '#DonateForm' ) . is ( ':checked' ) ) { $ ( 'input[name=cmd]' , '#DonateForm' ) . val ( '_xclick-subscriptions' ) ; $ ( 'input[name=a3]' , '#DonateForm' ) . val ( $ ( 'input[name=amount]' , '#DonateForm' ) . val ( ) ) ; } else { $ ( 'input[name=cmd]' , '#DonateForm' ) . val ( '_donations' ) ; } }
Check if monthly donation checkbox is checked or not
Check if monthly donation checkbox is checked or not
//copy value of selection to amount field
