Through Javascript Validate The Value Of Input Field on onblur Event

Onblur event triggered when field loses focus. This event is mainly use to validate the field when user moves to another field to fill the values.

Subscribe Our Tutorials

Get Latest Updates on Facebook

How To Check The Value Of Input Field On onblur event

First create one input field. This input field is validated through javascript when field loses focus. On onblur event we call validate_me function.

Validate_me Function

If the field is empty and user moves to another field then alert message occurs which ask user to enter a value.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.
Tagged , . Bookmark the permalink.