as avances en el ejercicio5
This commit is contained in:
@@ -106,6 +106,7 @@ form.addEventListener('submit' , (e) =>{
|
||||
e.preventDefault();
|
||||
if (nombre.value.trim() === '') {
|
||||
console.log('nombre vacio, reintenta');
|
||||
document.querySelector('#error-nombre').textContent = 'error nombre';
|
||||
return;
|
||||
} else if (edad.value > 120 || edad.value < 0){
|
||||
console.log('edad inverosimil');
|
||||
|
||||
Reference in New Issue
Block a user