Advertisement
Page2Pub

Untitled

Mar 5th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  function ModeModif()
  2.         {
  3.             var champ = document.querySelectorAll("input[type=Text]")
  4.             for(var i=0; i<champ.length;i++)
  5.                 if(champ[i].value!="")
  6.                 {
  7.                     champ[i].disabled = true;
  8.                 }
  9.  
  10.             var drop = document.querySelectorAll("select")
  11.             for(var i=0; i<drop.length;i++)
  12.                 if(drop[i].selectedIndex>0)
  13.             {
  14.                 drop[i].disabled = true;
  15.             }
  16.  
  17.             var bout = document.getElementById("btnModif")
  18.             bout.hidden = !bout.hidden;
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement