Autonumeric

autoNumericarrow-up-right is a jQuery plugin that automatically formats currency and numbers as you type on form inputs.

circle-info

Please refer to jQuery autoNumeric Documentationarrow-up-right to learn about plugin options

Step one

Include the javascript file inside the <body>before core template script inclusions, if it's not there already.

<script src="assets/plugins/jquery-autonumeric/autoNumeric.js" type="text/javascript">

Step two

Add the markup.

<input type="text" data-a-dec="." data-a-sep="," class="autonumeric form-control">

Step three

Apply the plugin.

circle-exclamation

Last updated