Advertisement
Guest User

Untitled

a guest
Jan 14th, 2017
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Uncaught ReferenceError: saluta is not defined
  2. at HTMLButtonElement.onclick ((index):33)
  3.  
  4. <button onclick="saluta()" id = "btn_sa">LOGIN</button>
  5.  
  6. function saluta(){
  7. var username = document.getElementById("Name").value;
  8. var password = document.getElementById("Password").value;
  9. var blocco = $("<div></br>Ciao </div>");
  10. if(password === "errata"){
  11. $(blocco).append(x);
  12. blocco.appendTo(document.body);
  13. document.getElementById("btn_sa").disabled = true;
  14. }else{
  15. $(blocco).css({
  16. "color" : "red"
  17. "font-size" : "10px"
  18. });
  19. $(blocco).append("Password Errata");
  20. blocco.appendTo(document.body);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement