http://autonumeric.org - autoNumeric is a standalone library that provides live *as-you-type* formatting for international numbers and currencies
AlexandreBonneau on next
Fix SSR import Makes the UMD b… (compare)
AlexandreBonneau on next
Fix the eslint errors Signed-o… (compare)
AlexandreBonneau on next
Update the copyright dates and … (compare)
'.currency:not(.anElement)' as the selector
styleRules to set the css class (see https://github.com/autoNumeric/autoNumeric/#predefined-style-rules)
I tried both of these links
<script src="https://cdn.jsdelivr.net/npm/autonumeric@4.1.0"></script>
<!-- ...or -->
<script src="https://unpkg.com/autonumeric"></script>
Hi,
I have been using version 2 and now i have encouraged a problem with version 4.
I have multiple items:
new AutoNumeric.multiple('.itemDiscount', {
"maximumValue": "100",
"minimumValue": "-100",
"suffixText": "%"
});
i used autoNumeric("set",value) but now i need to change it and both not working for me
$(".itemDiscount[data-path]").set(discount); //non gets set
AutoNumeric.getAutoNumericElement(".itemDiscount[data-path]").set(discount); //only the first one gets set
set method, which does not exist
an.set(discount) later on
new AutoNumeric.multiple('.itemDiscount', yourOptions); retourns an array of such references, for info
AutoNumeric.getAutoNumericElement() is singular and will only get the very first elements
AutoNumeric.getAutoNumericElements() (plural) that would return an array of those elements? I'm not sure
Hi, there must be a simple answer to this. I need an input with currency symbol '£', empty value £25,000, min value £25,000, max value £10,000,000 and no decimal places. This config just does not allow me to enter anything.
What am I doing wrong ?
{
currencySymbol: "£",
decimalPlaces: 0,
emptyInputBehavior: "25000",
maximumValue: "10000000",
minimumValue: "25000"
}
Hello every one,
Autonumeric is not working on input, I know i am not doing it right, Please i need help.
I only want the raw data to be submitted to the database for further calculation after formatting.
Where can i get a link to a step by step usage of this plugin, code below.
Thanks a lot
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/autonumeric@4.1.0"></script>
<script type="text/javascript">
$(document).ready(function(){
new AutoNumeric('#input', {
currencySymbol : '$',
decimalCharacter : ',',
digitGroupSeparator : '.',
});
</script>
</head>
<body>
<form>
<input type="text" value="" id="input"/>
</form>
</body>
</html>
formSubmitJsonNumericString() function for instance
. that it would convert it to a , since no points are used as the digitGroupSeparator