Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.