Simplest Numeric Input Plugin With jQuery - Numeric Only

File Size: 4.19 KB
Views Total: 1026
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simplest Numeric Input Plugin With jQuery - Numeric Only

Numeric Only is a dead simple jQuery plugin which makes your text input fields only accept numeric values (0-9). Also works on 'Copy and Paste' events.

How to use it:

1. To use the plugin start with adding the following snippets in your html document.

<script src="jquery.min.js"></script>
<script src="jquery.numeric-only.js"></script>

2. Just call the function on the target input field and the plugin will take care of the rest.

$('input').numericOnly();

This awesome jQuery plugin is developed by scrubmx. For more Advanced Usages, please check the demo page or visit the official website.