On 08/02/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi folks, > > there were some questions about my very first version of the validation > plugin (it's still on the plugin page). If you are interested in form > validation, you may want to take a look at the current state of the > plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ > > It's 1.0 version is now in alpha status: That means that I can't > guarantee to not change the API until the beta release. But apart from > that, the plugin is already pretty stable, and should provide nearly > everything you need for client-side form validation. > > It uses the metadata plugin, therefore you can choose between > specifiying your validition in the markup via extra class infos or > custom attributes. Or, in case you don't want to use inline markup, you > can just pass the rules as a JavaScript object to the plugin (see the > examples). > > The plugin is aimed at both fast prototyping and highly customized > validation: There are default messages for all provided methods > (required, email etc.) that can be overriden by using the title > attribute on input elements, specifying custom error messages in the > markup (the old method with labels) or via a JavaScript object passed to > the plugin. > > The plugin page contains some more information about known issues, > migration from the old plugin and, in the extreme contrast to the old > version, a nearly complete documentation. I'm sure there is room for > imrovement, but at least it covers everything. > > Demos ( http://jquery.bassistance.de/validation/validateTest.html ) > cover also integration with the form plugin: > http://jquery.bassistance.de/validation/formPluginIntegration.html > > Your feedback is highly appreciated! We should be able to create the > definite solution for jQuery form validation... > > Regards > > -- > Jörn Zaefferer > > http://bassistance.de
Looks like it is coming along nicely. One issue I can think of is if an element doesn't have an id (and it's not a checkbox or radio), it won't validate: <input type="text" name="FirstName" /> I think name should be used instead of id, especially since when you submit a form that is used to identify form elements (I think that is how it works - a simple test would be a form with differents ids on the elements with a server script to loop through them). _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
