Decimal-Behavior JavaScript jquery using decimal behavior for text field. Downloading the sark-decimal.js file Including it on your page Include jQuery and the plugin on a page. <script src="jquery.js"></script> <script src="sark-decimal.js"></script> Should use field in <input type="text" data-behaviour="decimal" maxlength="15"> maxlength is optional if you not set maxlength it will take 15. If you want increse to change fieldLength variable in plugin file.