i suggest that use HTML5 and css3 new feature
HTML5 Form Validation
-
- User
- Posts: 1
Before you use it, read how to work with form validation in HTML5. I faced with some problems such "novalidate" attribute. The following article helped me a lot: basicuse.net/articles/pl/textile/html_css/form_validation_in_html5