validate input fields
A jQuery plugin to validate input field.
- Validates integer,decimal
- can set number of values after decimal.
- Compare values of two fields
element - HTML element
- Validate integer :
jQuery(element).wkInputValidator({
type:"integer",
validateinput:true,
compare:false
});
- Validate decimal :
jQuery(element).wkInputValidator({
type:"decimal",
validateinput:true,
compare:false,
decimalpoints:2
});
- Validate with compare :
jQuery(element).wkInputValidator({
type:"decimal",
validateinput:true,
compare:true,
compare_min:element,
compare_max:element2,
decimalpoints:2
});