Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 829 Bytes

README.md

File metadata and controls

45 lines (37 loc) · 829 Bytes

input-validator

validate input fields

A jQuery plugin to validate input field.

Features :

  • Validates integer,decimal
  • can set number of values after decimal.
  • Compare values of two fields

Examples :

element - HTML element

  1. Validate integer :
    jQuery(element).wkInputValidator({
      type:"integer",
      validateinput:true,
      compare:false
    });
  1. Validate decimal :
 jQuery(element).wkInputValidator({
      type:"decimal",
      validateinput:true,
      compare:false,
      decimalpoints:2
  });
  1. Validate with compare :
  jQuery(element).wkInputValidator({
      type:"decimal",
      validateinput:true,
      compare:true,
      compare_min:element,
      compare_max:element2,
      decimalpoints:2
  });