Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ModeModif()
- {
- var champ = document.querySelectorAll("input[type=Text]")
- for(var i=0; i<champ.length;i++)
- if(champ[i].value!="")
- {
- champ[i].disabled = true;
- }
- var drop = document.querySelectorAll("select")
- for(var i=0; i<drop.length;i++)
- if(drop[i].selectedIndex>0)
- {
- drop[i].disabled = true;
- }
- var bout = document.getElementById("btnModif")
- bout.hidden = !bout.hidden;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement