An open API service indexing awesome lists of open source software.

https://github.com/picandocodigo/ci.jquery

jQuery plugin to validate Uruguayan Identity Documents (Cedula de Identidad Uruguaya).
https://github.com/picandocodigo/ci.jquery

Last synced: 4 months ago
JSON representation

jQuery plugin to validate Uruguayan Identity Documents (Cedula de Identidad Uruguaya).

Awesome Lists containing this project

README

        

# jQuery CI Validator

jQuery plugin to validate Uruguayan Identity Documents (Cedula de
Identidad Uruguaya).

This plugin will validate a text input's content as a Uruguayan CI
number. It will add 'valid' or 'invalid' classes to an input.
Check out [example.html](example.html) to see how it works or see below:

## Usage:

```html

input.valid{
background: #9deb91;
}
input.invalid{
background: #eb91ae;
}

$("#ci").keyup(function(){
$("#ci").validate_ci(); // adds 'valid' or 'invalid' classes to the input on keyup
});

```