Questions tagged [autonumeric.js]

AutoNumeric.js is a .standalone js-library for formatting of numeric values in input-field AND a variety of HTML-Tags.

AutoNumeric.js is a .js-library for formatting of numeric values in input-field AND a variety of HTML-Tags.

27 questions
17
votes
11 answers

How can I remove AutoNumeric formatting before submitting form?

I'm using the jQuery plugin AutoNumeric but when I submit a form, I can't remove the formatting on the fields before POST. I tried to use $('input').autonumeric('destroy') (and other methods) but it leaves the formatting on the text fields. How can…
4spir
  • 1,174
  • 2
  • 15
  • 31
7
votes
3 answers

How to check if element has autoNumeric initialized

How to check if an HTML element already has autoNumeric initialized, so i won't initialize it again? Initializing it twice results in all input numbers appearing twice. if (// autonumeric not yet initialized) { var anObject = new…
lofihelsinki
  • 2,491
  • 2
  • 23
  • 35
3
votes
1 answer

AutoNumeric - removes received values

I use autoNumeric. Data that is added to the input is cleared when you hover the input element. Why are the values ​​cleared? How to fix it? Demo $('#thermForwardStream').focusout(function () { var thermForwardStream =…
Дмитрий
  • 275
  • 2
  • 12
3
votes
2 answers

All methods return '.autoNumeric is not a function - Can't unformat numbers

I'm trying to get the raw values of input numbers formatted using autoNumeric, but can't because every method I try to do this with it returning '.autoNumeric is not a function' in the console. $(document).ready(function() { new…
nick.cook
  • 2,071
  • 4
  • 18
  • 36
1
vote
2 answers

In AutoNumeric javascript, how do I create a format that shows integer if the input is an integer but currency if the input is a float?

I need to create a format in AutoNumeric javascript that does the following: If the textbox's input value is 87, leave it unformatted: 87 If the input value is 87.6, show it as: 87.60 If the input value is 87.65, show it as: 87.65 If the input value…
Ringo
  • 5,097
  • 3
  • 31
  • 46
1
vote
1 answer

AutoNumeric Multiple Class using preset Languages

The goal here is to set all the .class values (.multiple) with the preset languages and being able to modify things like decimal places or remove the currency symbol. This works only for one class. new…
diogenes
  • 1,865
  • 3
  • 24
  • 51
1
vote
1 answer

Failed to instantiate component or class "yii\bootstrap\BootstrapAsset"

I'm trying to make a form in yii2 accept big numbers like currency . I want the number to be seperated for example 10000000 seems like that 10.000.000 . I search and find that there is something called auto numiric I use it but I got this…
Fahd
  • 17
  • 1
  • 6
1
vote
0 answers

autonumeric.js using getNumericString in multiple scenario

I am attempting to use autonumeric.js multiple to populate the value of the non-DisplayOnly field with the numeric value of the DisplayOnly field. I am using the class "autonumeric-currency" to identify the DisplayOnly field. I have much more html,…
MaxPowers
  • 474
  • 1
  • 4
  • 18
1
vote
0 answers

how to fire vue's custom directive after mounted

ll i am new to vue.js, i want to use autonumeric into my project, then i try to use vue custom directive, but now i face a problem, which autonumeric always load the initial state / data instead of the updated data.. please kindly help me, this is…
vidihermes
  • 763
  • 3
  • 9
  • 22
1
vote
1 answer

How to set value to autonumeric element programmatically?

I use (autonumeric@4.1.0) with laravel 5.7/jquery 3.4.1 app and I need to set value to autonumeric element programmatically on event triggered. Looking at description https://github.com/autoNumeric/autoNumeric I see example with set method…
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
1
vote
1 answer

How to calculate total with AutoNumeric

I'm using http://autonumeric.org/ or https://github.com/autoNumeric/autoNumeric/blob/master/README.md How to fix When I use JS function to calculate the sum total appear, but not as formatted AutoNumeric as I want it to be When mouse hover the…
zummon
  • 906
  • 3
  • 9
  • 27
1
vote
1 answer

Set value to zero after null

I have a problem displaying a zero value after null. null is not displayed in the input, but if I change the value to 0, it also does not appear... Maybe I'm doing something wrong? Maybe someone came across this and is there a way to fix this…
Zeroox
  • 67
  • 5
1
vote
0 answers

Getting "Uncaught TypeError: Illegal invocation throws at" in salesforce community when using AutoNumeric,js

When i run below js in separate LWC, it works fine. If i try to include this code in another lightning web component it is throwing error as soon as i click on the input box or any button. If i redeploy the previous code then also the error is…
Surabhi
  • 21
  • 1
  • 2
1
vote
1 answer

Implementing autoNumeric v4 in MVC Project

I have a problem when I try to install via nuget manager, when I search for 'autonumeric' I can clearly see that the latest version is 1.9.45 When I go to project site, I can see that version 1.9.45 is obsolete. So, I want to get version 4.* but I…
Stefan0309
  • 1,602
  • 5
  • 23
  • 61
0
votes
0 answers

autoNumeric causing removed values to be posted on form submit

I'm using autoNumeric to reformat numbers on my form. My form loads previously entered data, allowing the user to update information on the form, overwriting the previous data. The user can change information on that page that removes values from…
Jim
  • 58
  • 1
  • 5
1
2