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
<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
Comment