Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
I have search page which has 8 textbox.

I have made used of HTML5 attributes like Required, Pattern to validate every textbox in page.

Since this HTML5 form validation happens only when submit is triggred for the form.

As I'm using jQuery mobile every call is made using jQuery AJAX.

Validation:
1. Atleast one textbox is non empty.
2. If multiple textbox is non empty, then check if it has min 3 characters in it.


Any idea how I can validate those fields?

Thanks in advance
Posted

1 solution

Use this plugin of jQuery - http://jqueryvalidation.org/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900