House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / JQuery

Multiple Ajax forms and addClassRules

Author:
Scott Brady
04/10/2010 07:44 PM

I have a page with multiple ajax forms on it (each form is in its own accordion panel) -- each form has its own set of validation rules.  On one of the forms, I have some dynamically named fields that I was going to use the addClassRules() method to apply rules to it. However, every example I can find uses this syntax: $.validator.addClassRules("customer", { cRequired: true, cMinlength: 2 });. If I understand that syntax correctly, that either only works if there's one validator on the page, or it applies it globally (so, every form will have that valedation rule). For this form, I'm setting it up with the form validation this way:                $("#editFormMeetInfo").validate                (                        {                                ... snipped my validation code ...                        }                ) How would I use addClassRules() in this case? Scott -- ----------------------------------------- Scott Brady http://www.scottbrady.net/


Search jquery

October 25, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference