Is there a bug with min=“0” in jquery validation? Or am I overlooking something?
问题 jQuery validation seems to work fine with min="1" and min="-1" , but not with min="0" . Consider this jsFiddle. It appropriately objects to a value of -5 in the first input element and in the third, but accepts a -5 in the second one, where min="0" . Is this a bug in jQuery validation or am I overlooking something? <form id="myform"> <input type="text" name="negativeone" min="-1"/> <br/> <input type="text" name="zero" min="0"/> <br/> <input type="text" name="one" min="1" /> </form> <button id