I would like to be able to validate an input so that by pressing the "space" key there is no effect on the input.
This is what I have
if ($('#correo').val().trim() == "") {
mensajeAlert("El campo correo es obligatorio");
return false;
}
Currently, if the field is empty, it displays the error message.