Warning: include(.../cache/template/template63867.php): failed to open stream: No such file or directory in /home/codingta/public_html/includes/vb5/template.php on line 328 Warning: include(): Failed opening '.../cache/template/template63867.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/codingta/public_html/includes/vb5/template.php on line 328 email validation - Coding-Talk

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/

    Comment

    Working...
    X