Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

how we can validate a textbox input in webform?

how we can validate a textbox input in webform?

Problem

please can anyone tell me how to Validate a text box while iam moving from one text box to another.

it must show an error picture after the text box and it should changes Textbox border colour. iam new to web designing . please help me

Thanks in advance

Problem courtesy of: Sam

Solution

This is achieved by invoking validation function on blur event of field. Using jQuery you can inject the event handlers - there are many plugins available for the same.

One such plugin can be found here: http://www.geektantra.com/2009/09/jquery-live-form-validation/

Demo: http://www.geektantra.com/projects/jquery-form-validate/

Solution courtesy of: Rutesh Makhijani

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

how we can validate a textbox input in webform?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×