Guest User

Untitled

a guest
Apr 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function proz(){
  2. var textbox = document.getElementById("nr").value; / nr is editbox
  3. var div = document.getElementById("proz"); / proz is the transparent div
  4.  
  5. if (document.getElementById("nr").value == "a"){ / i tried with if var == "a" but nothing.
  6. div.setAtribute("id", "proz2"); /here proz 2 is another pink div, trying to overlay first div
  7. }
  8. }
Add Comment
Please, Sign In to add comment