// Check for @domain.com in E-Mail with regex_email
<script>
$('#form').submit(function(e) {
var email = $(this).find('#email').val();
var id=$(this).find('#submit').attr('id').split("_").pop();
var regex_email = /^[a-z\.\-]+@domain.com$/;
if (regex_email.test(email)||email.match(/^\d+$/)) {
return true
}
else {
e.preventDefault();
e.stopImmediatePropagation();
return false;
}
});
</script>
// Check for @domain.com in E-Mail with regex_email
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.