Yes, either select a form or some input element. Both works. if ($("#myform").valid()) alert("yeah!") if (!$("#myinput").valid() alert("noooo!")
Jörn On Fri, Jul 18, 2008 at 3:18 PM, yang <[EMAIL PROTECTED]> wrote: > > Hi all, > > In the API documentation for Validation plugin, it is written that > valid() method can validate "selected elements". Can someone help me > for the usage of this method? Can it be done with jQuery selectors, > like: $('elements').valid() ? > > Thank you. >