Why doesn't it work to define classrules like documented in the jquery.validator documentation?
My javascript
jQuery.validator.addClassRules('foo', {
required: true,
digits: true
});
jQuery('#test').validate({
rules: {
field: 'foo'
}
});
My html
<form id="test">
<input type="text">
</form>
nameattribute to an element that already contains anameattribute. If you don't want to accept the technically correct answer, at least post your own and accept that instead. Thank-you.