email validation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    email validation

    any one here help me javascript email validation code

    <div id="emailmsg"></div>
    <input type='text' name='emailadd' id='emailadd' maxlength="35" class="well form-control" placeholder="Email">

    jquery 3.2.1.js
    <script>

    $('#emailadd').on('input', function() {
    /////////// idont know code////////////////
    if //////email is invalid ///////
    $('#emailmsg').html('<div class="message">Please Provide Valid Email</div>');
    }else{
    $('#emailmsg').html('<span class="message">Valid email</span>');
    }

    }
    });

    </script>

    thanks

    #2
    use the jquery validate plugin https://jqueryvalidation.org/documentation/
    Advertise your mobile site for FREE with AdTwirl

    Comment

    Working...
    X