What is the best way to ensure that an email field has the correct format?
<input type="email" id="correo" name="correo" />
let email = document.getElementById('correo').value;
if (_____) {
alert("Invalid email");
}
What is the best way to ensure that an email field has the correct format?
<input type="email" id="correo" name="correo" />
let email = document.getElementById('correo').value;
if (_____) {
alert("Invalid email");
}