Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanbossenger/a3276f05c08044991ba246719d4893ff to your computer and use it in GitHub Desktop.
Save jonathanbossenger/a3276f05c08044991ba246719d4893ff to your computer and use it in GitHub Desktop.
Check for valid email example
jQuery(function ($) {
$( document ).ready(function() {
$(“.diviclick”).on(“click”, function(){
event.preventDefault();
if ($('#email').val().length > 0){
$(‘#guiarapidaoptin’).submit();
}else {
alert('A valid email address is required')
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment