validate plugin - using classes
Hi - I'm using the following to validate my form, which works fine...but what I'm hoping is to apply this validation via the element class name and not the name. I know there's got to be an easy way and I'm just missing it....anyone?
- $("#form").validate({
rules: {
"inputname": {limitCheckdual: true},
"anotherinputname": {limitCheckdual: true},
"adifferentinputname": {limitCheckdual: true},
"adifferentinputnameetc": {limitCheck: true},
"adifferentinputnameetc1": {limitCheck: true},
"settings_custom[EndClassYear]": {
yearRangeCheck: true
- }
- });