javascript - Trying to access the HTML5 email validation client-side -


i'm trying simple email validation, have email input just

<input type='email' id="user_email"> 

and i'm trying call on javascript using

document.getelementbyid('user_email').addeventlistener('invalid', function() {     console.log('invalid email'); }) 

but doesn't seem working, i've tried googling found nothing. thanks!

i'm trying use html5 validation on email change p elements text like, 'invalid email format'.

add id input ?

<input type='email' id='user_email' /> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -