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

Palid/jquery-input-blocker

Repository files navigation

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.

About

Blocks input depending on provided options

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published