> For the complete documentation index, see [llms.txt](https://docs.pages.revox.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pages.revox.io/form-elements/autonumeric.md).

# Autonumeric

[autoNumeric](http://www.decorplanit.com/plugin/) is a jQuery plugin that automatically formats currency and numbers as you type on form inputs.

{% hint style="info" %}
Please refer to [jQuery autoNumeric Documentation](http://www.decorplanit.com/plugin/) to learn about plugin options
{% endhint %}

**Step one**

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

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

**Step two**

Add the markup.

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

**Step three**

Apply the plugin.

{% hint style="warning" %}
Make sure you place the following script **below** all the pre-requisites mentioned in the Step two above.
{% endhint %}

![](/files/-LEA-0-B0C2SttUA6MjT)

```markup
<script>
$(document).ready(function() {
    $('.autonumeric').autoNumeric('init');
});
</script>
```
