Business mail ID blocked in form

Hi,

<script type="text/javascript">
    $(document).ready(function(e) {
        $('#submitform').click(function() {
            var email = $('#email').val();
            var reg = /^([\w-\.]+@(?!gmail.com)(?!yahoo.com)(?!hotmail.com)(?!yahoo.co.in)(?!aol.com)(?!abc.com)(?!xyz.com)(?!pqr.com)(?!rediffmail.com)(?!live.com)(?!outlook.com)(?!me.com)(?!msn.com)(?!ymail.com)(?!yopmail.com)([\w-]+\.)+[\w-]{2,4})?$/;
            if (reg.test(email)) {
                return 0;
            } else {
                alert('Please enter business email');
                return false;
            }
        });
    });
</script>

I have use this code to block email ID like gmail, yahoo, hotmail … Because I want only business mail ID can submit form in my website. This code help me to block some mail ID’s which I mention in code but there is some problem with this code even business mail ID not able to submit form in my website, if anyone have solution on this please help me resolve this issue.

You might try this approach.

If that doesn’t work, share your readonly site link, plus an example of an email that should work in your regex.