I am having trouble with adding a maxlength rule to a textbox that is not required. When I call the valid function on this item, it is returning false.
....TextBox1").rules("add",{maxlength: 40, minlength: 0});
Which is returning invalid here when nothing is entered. It is also not yielding an error message.
...$group.find(':input').each(function(i, item) { if (!$(item).valid()...