-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the typed number in original format with JS #746
Comments
Thanks for reporting this issue, however with the few information you gave us, we are not able to correctly reproduce it. |
Hi @AlexandreBonneau , sorry here more details. But I have already the € 1.000,5 into input like this:
Is there a way with AutoNumeric to get the rough value 1000.5 from the above input? thanks |
I'm sorry I have a hard time understanding what is your problem/question. I've tried creating one from your previous post, but again I'm not sure exactly what you are trying to achieve. I've added those one so you can choose from them: anElement.node().addEventListener("input", () => {
console.log("anElement.getFormatted():", anElement.getFormatted());
console.log("anElement.getNumber():", anElement.getNumber());
console.log("anElement.getNumericString():", anElement.getNumericString());
}); |
Hi @AlexandreBonneau ,
another small missing feature is that, yes we can pass the number not formatted on form submit, but we cannot get anyway the number typed in normal format!
Example:
€ 1.000,50 => get 1000.5
thanks
The text was updated successfully, but these errors were encountered: