jQuery Plugin For Numeric Input Filed - NumericInput
File Size: | 5.39KB |
---|---|
Views Total: | 6720 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
NumericInput is a simple jQuery plugin that makes your input field or textarea only accept numbers as entering. It comes with some options to allow to accept positive numbers (floating point) and positive or negative integer.
Basic Usage:
1. Include jQuery Library and jQuery NumericInput on your page
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="numericInput.min.js"></script>
2. Create a texearea field with an element ID
<textarea id="demo"></textarea>
3. Call the plugin with options
<script> $(function() { $("#demo").numericInput({ allowFloat: true, // Accpets positive numbers (floating point) allowNegative: true // Accpets positive or negative integer }); }); </script>
This awesome jQuery plugin is developed by joshuadeleon. For more Advanced Usages, please check the demo page or visit the official website.