Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery validation prevent negative number

$("#formid").validate({
    rules: {
        fieldname: {
           min: 1
        },
    messages: {
       fieldname: {
           min: "Value must be greater than 0"
       }
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #validation #prevent #negative #number
ADD COMMENT
Topic
Name
2+5 =