[jQuery] Form validation

[jQuery] Form validation

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2>hello,</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>i used to use this
very nice library for form validation, back in those days when i was using
prototype: <A
href="http://tetlaw.id.au/view/javascript/really-easy-field-validation">http://tetlaw.id.au/view/javascript/really-easy-field-validation</A><A
href="http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/"></A></FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>I would like to know
if there is anything similar available for jquery?</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>Basically, you only
need to add a specific class so that the corresponding validation is performed,
and if faulty, it uses the title attribute value as error
message.</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>For instance, you
can choose between these built-in classes (or develop additional validation
rules)</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007>
<LI><FONT face=Arial><CODE>required</CODE> (not blank)</FONT>
<LI><FONT face=Arial><CODE>validate-number</CODE> (a valid number)</FONT>
<LI><FONT face=Arial><CODE>validate-digits</CODE> (digits only)</FONT>
<LI><FONT face=Arial><CODE>validate-alpha</CODE> (letters only)</FONT>
<LI><FONT face=Arial><CODE>validate-alphanum</CODE> (only letters and
numbers)</FONT>
<LI><FONT face=Arial><CODE>validate-date</CODE> (a valid date value)</FONT>
<LI><FONT face=Arial><CODE>validate-email</CODE> (a valid email address)</FONT>
<LI><FONT face=Arial><CODE>validate-url</CODE> (a valid URL)</FONT>
<LI><FONT face=Arial><CODE>validate-date-au</CODE> (a date formatted as;
dd/mm/yyyy)</FONT>
<LI><FONT face=Arial><CODE>validate-currency-dollar</CODE> (a valid dollar
value)</FONT>
<LI><FONT face=Arial><CODE>validate-selection</CODE> (first option e.g. 'Select
one...' is not selected option)</FONT>
<LI><FONT face=Arial><CODE>validate-one-required</CODE> (At least one
textbox/radio element must be selected in a group</FONT></LI></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=890411219-06022007>Among the options,
it allows to validate onblur or on submit.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=890411219-06022007>The demo is here: <A
href="http://tetlaw.id.au/upload/dev/validation/index.html">http://tetlaw.id.au/upload/dev/validation/index.html</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>I saw a few form
plugins in the plugin section, but they are in alpha stages , so i would like to
know what you would advise out of your own personal
experience.</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial size=2>Thank
you,</FONT></SPAN></DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=890411219-06022007><FONT face=Arial
size=2>Alexandre</FONT></SPAN></DIV>
<DIV></SPAN> </DIV>
<DIV> </DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana">Alexandre
Plennevaux - <SPAN class=SpellE><SPAN class=GramE>LAb</SPAN></SPAN><SPAN
class=GramE>[</SPAN>au] <SPAN class=SpellE>asbl.vzw</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"> / </SPAN><SPAN
class=SpellE style1="style1"><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">MediaRuimte</SPAN></SPAN><BR><SPAN
class=SpellE><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Lakensestraat</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">/Rue de Laeken
104<BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">B-1000
Brussel-Bruxelles-Brussels<BR></SPAN><SPAN class=SpellE><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Belgie</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">-Belgique-<SPAN
class=SpellE>Belgium</SPAN></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Tel:+32(0)2.219.65.55<BR>Fax:+32(0)2.426.69.86<BR>Mobile:+32(0)476.23.21.42<BR><A
title=http://www.lab-au.com/
href="blocked::http://www.lab-au.com/">http://www.lab-au.com<BR></A><A
title=http://www.mediaruimte.be/
href="blocked::http://www.mediaruimte.be/">http://www.mediaruimte.be</A></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"><A
title=http://www.mediaruimte.be/
href="blocked::http://www.mediaruimte.be/"></A></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"
xml:lang="EN-GB">__________________________________________________________________________</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana" xml:lang="EN-GB">The
information in this e-mail is intended only for the addressee named above. 
If you are not that addressee, please note that any disclosure, distribution or
copying of this e-mail is prohibited.<BR>Because e-mail can be electronically
altered, the integrity of this communication cannot be guaranteed.</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"
xml:lang="EN-GB">__________________________________________________________________________</SPAN></P>
<DIV> </DIV><BR>
<P><FONT size=2>--<BR>Ce message Envoi est certifié sans virus connu.<BR>Analyse
effectuée par AVG.<BR>Version: 7.5.441 / Base de données virus: 268.17.27/671 -
Date: 5/02/2007 16:48<BR></FONT></P></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/