Skip to content

Instantly share code, notes, and snippets.

View midnai's full-sized avatar

Jhosbel Aguilar midnai

View GitHub Profile
// in your javascript file ...
$(document).ready(function() {
$('#send').click(function(){
if($("#email").val().indexOf('@', 0) == -1 || $("#email").val().indexOf('.', 0) == -1) {
alert('El correo electrónico introducido no es correcto.');
return false;
}