I'm making a jquery.validate
, can get the max to be dynamically,
something like:
...
max: function () {
return $('#QtdEstoqueHidden').val();
...
Okay, it worked! (I store the max value in a hidden field that is dynamically replaced by an ajax on the page)
Now I want to ignore it depending on a <select>
.
I tried to make it ignore the validation, but I could not, so I tried to make a max = 999999999 would be enough as if it were overflowing. but I could not Now it always releases the form.
Follow the jsfiddler link