Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uncaught ReferenceError: saluta is not defined
- at HTMLButtonElement.onclick ((index):33)
- <button onclick="saluta()" id = "btn_sa">LOGIN</button>
- function saluta(){
- var username = document.getElementById("Name").value;
- var password = document.getElementById("Password").value;
- var blocco = $("<div></br>Ciao </div>");
- if(password === "errata"){
- $(blocco).append(x);
- blocco.appendTo(document.body);
- document.getElementById("btn_sa").disabled = true;
- }else{
- $(blocco).css({
- "color" : "red"
- "font-size" : "10px"
- });
- $(blocco).append("Password Errata");
- blocco.appendTo(document.body);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement