daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.     function customAmount(custom)
  3.     {
  4.         var elem1 = document.getElementById("donate_other_id");
  5.         var elem2 = document.getElementById("donate_other_amount_id");
  6.        
  7.         if(elem1 != null && elem2 != null)
  8.         {
  9.             elem2.disabled = (!custom.checked);
  10.            
  11.             if(elem1.checked)
  12.                 elem2.focus();
  13.         }
  14.     }
  15. </script>
  16.  
  17.  
  18. <fieldset>
  19.     <form action="" method="post" name="donate">
  20.         <table cellpadding="5px">
  21.             <tr><td><input type="radio" name="amount" value="5" /><label>$5</label></td><td><input type="radio" name="amount" value="5" /><label>$50</label></td></tr>
  22.             <tr><td><input type="radio" name="amount" value="10" /><label>$10</label></td><td><input type="radio" name="amount" value="5" /><label>$100</label></td></tr>
  23.             <tr><td><input type="radio" name="amount" value="20" /><label>$20</label></td><td><input type="radio" name="amount" id="donate_other_id" value="0" onchange="customAmount(this);" /><label>Other: (Between $5 and $500)</label></td></tr>
  24.             <tr><td></td><td>Amount : $<input type="text" name="amount" size="5" id="donate_other_amount_id" disabled="true" /></td></tr>
  25.         </table>
  26.     </form>
  27. </fieldset>
RAW Paste Data
Top