Advertisement
illpastethat

syntax on donate?

Aug 18th, 2014
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $('#hideCustom').hide();
  2.     $('#amount').change(function () {
  3.         var val = $(this).val();
  4.         if (val == 'Other Donation') {
  5.             $('#hideCustom').show();
  6.         } else {
  7.             $('#hideCustom').hide();
  8.         }
  9.     });
  10.     $('#submit').click(function() {
  11.         var amt = $('#otherDonation').val();
  12.         if(amt < 0.01){
  13.         var amt = 15.00;
  14.         }
  15.         $('#customAmount').attr("value", amt);
  16.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement