¡@

Home 

2014/10/16 ¤W¤È 12:05:53

jquery Programming Glossary: numberfilled

jQuery Validate - “Either skip these fields, or fill at least X of them”

http://stackoverflow.com/questions/1888976/jquery-validate-either-skip-these-fields-or-fill-at-least-x-of-them

element options var numberRequired options 0 var selector options 1 Look for our selector within the parent form var numberFilled selector element.form .filter function Each field is kept if it has a value return this .val .length var valid numberFilled.. selector element.form .filter function Each field is kept if it has a value return this .val .length var valid numberFilled numberRequired numberFilled 0 The elegent part this element needs to check the others that match the selector but we don't.. .filter function Each field is kept if it has a value return this .val .length var valid numberFilled numberRequired numberFilled 0 The elegent part this element needs to check the others that match the selector but we don't want to set off a feedback..