I would like to know how to validate a Checkbox
with JQuery
in a small form.
<form action="">
<a>Correo: </a>
<input type="email" name="correo">
<br>
<a>Telefono: </a>
<input type="text" name="telefono">
<br>
<a>Aceptar condiciones: </a>
<input type="checkbox" name="aceptar">
<br>
<button type="submit" id="submit">Enviar Formulario</button>
</form>
I found several types of validations .is(selector)
and .prop()
but I tried to apply them and I could not get it, I just want you to throw an alert that says something like Accepts the conditions .