I've got a form, within an input Html element:
<input name="MyInputName" type="number" />
and its 'type' attribute is set to "number" because I want to take advantage of HTML5's features.
In my js code I initialize jQuery.validate plugin:
$('.myFormClassName').validate({
rules: {
MyInputName: {
digits: true
}
}
});
... but it does not work.. I've managed everything correctly: I'm sure of this because if I get off my input's 'type' attribute (or set it to "text"), the validation works fine.
Is it a bug of jQuery.validate plugin or am I carelessly missing something important?
Thanks everyone ;)