Advertisement
illpastethat

Untitled

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