Empty input handling

This commit is contained in:
2023-04-19 13:06:30 -05:00
parent 1ecb14f121
commit d07c384015
2 changed files with 26 additions and 23 deletions

View File

@@ -11,12 +11,11 @@ function parseName() {
alert("Invalid Department");
return;
}
if(className == '' && department == '') {
alert("At least fill out the form...");
return;
}
// if(className == '' && department == '') {
// alert("At least fill out the form...");
// return;
// }
if(className == '' || department == '') {
alert("Missing something?");
return;
}
console.log(department, 0, className);