SHARE
TWEET

Untitled

a guest Mar 20th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function disableField()
  2. {
  3. var a = document.forms["myForm"]["donate_type"].value;
  4.  
  5.     if (a =="pet")
  6.     {
  7.         document.getElementById("money").disable=true;
  8.         document.getElementById("service").disable=true;
  9.         document.getElementById("pet").disable=false;
  10.     }
  11.    
  12.     if (a =="monetary")
  13.     {
  14.         document.getElementById("money").disable=true;
  15.         document.getElementById("service").disable=false;
  16.         document.getElementById("pet").disable=true;
  17.     }
  18.    
  19.     if (a =="service")
  20.     {
  21.         document.getElementById("money").disable=true;
  22.         document.getElementById("service").disable=false;
  23.         document.getElementById("pet").disable=true;
  24.     }
RAW Paste Data
Top