question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

autoNumeric prefixes 0 to the amount

See original GitHub issue

autoNumeric prefixes 0 to the amount in some instances.

All the amount values have the same class that is being used to init autoNumeric from JS.

$(".dollar_value").autoNumeric('init', { aSign: '$' })

autonumeric prefixes 0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Raylehnhoffcommented, Apr 14, 2016

It looks that version is quite behind:

https://github.com/randoum/autonumeric-rails

You could try doing it without that gem and seeing if it still happens. If it only happens when using aN via the gem, the issue should be opened with that fork.

0reactions
BobKnothecommented, Apr 15, 2016

Thanks Ray for your help and answers

vandamon - I suggest that you contact randoum and see if he will update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

autoNumeric/Documentation.md at next - GitHub
During page load / re-load autoNumeric compares the value of the input "$this[0].value" and the "$this.prop('defaultValue')" value. If they are equal and " ......
Read more >
autoNumeric - Decor Plan it
autoNumeric 1.9.41 is a jQuery plugin that automatically formats currency and numbers as you type on form inputs.
Read more >
Easy Number and Currency Formatting Library - autoNumeric
autoNumeric is a useful JavaScript library for international currency formatting as well as numbers formatting.
Read more >
Solved: Autonumber field with a prefix being the value fro...
Solved: I have the following fields in my Invoice Items entity. Name (set to autonumber, I mainly ignore this field) Invoice reference ...
Read more >
Autonumeric Input Widget — autonumericInput • shinyWidgets
Defaults to TRUE. decimalPlaces. Defines the default number of decimal places to show on the formatted value, and keep for the precision. Must...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found