Commit c0e67e50 by Thi Thanh Yen Hoang

update javascript.js v2

parent 027ba7af
...@@ -14,7 +14,7 @@ function validate() { ...@@ -14,7 +14,7 @@ function validate() {
// Validate // Validate
if (firstname == "" || lastname == "" || email=="" || cemail=="" || bday=="" ) { if (firstname == "" || lastname == "" || email=="" || cemail=="" || bday=="" ) {
message.innerHTML = "Input Error"; message.innerHTML = "Input Error";
check = false; check = false;
} }
else { else {
if (email == cemail) { if (email == cemail) {
...@@ -29,7 +29,7 @@ function validate() { ...@@ -29,7 +29,7 @@ function validate() {
} }
else { else {
message.innerHTML = "Input Error"; message.innerHTML = "Input Error";
check = false; check = false;
} }
} }
return check; return check;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment