posted 12 years ago
Hi,
If you want tu use client-side validation, with javascript, the best way is to use regular expressions.
Plenty of examples on the web.
if you want use HTML5, you can use the build in validators (no script needed) :
BUT, html5 is not supported very well at hte moment :-)