Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Latest commit

 

History

History
44 lines (32 loc) · 1.3 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.3 KB

Travis status Code Climate Test Coverage

jQuery Input Blocker

Lets through only allowed characters for <input> elements. Also works with pasting!

Requires jQuery 1.9. Run with tests: npm run Should work on IE 9.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/input-blocker.min.js"></script>
<script>
jQuery(function($) {
  $('selector').inputBlocker({
    canPaste: true,
    allowedRe: /\d/,
    maxlength: 10,
    trimOnPaste: false
  }); // "initializes input blocker with provided options"
});
</script>

Documentation

(Coming soon)

Examples

(Coming soon)

Release History

V 1.00 released 15.08.2014. V 1.01 released 17.08.2014.