📜  jquery 验证防止负数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:19.841000             🧑  作者: Mango

代码示例1
$("#formid").validate({
    rules: {
        fieldname: {
           min: 1
        },
    messages: {
       fieldname: {
           min: "Value must be greater than 0"
       }
    }
});