Accepting "." as decimal separator in a Input

Hi im in Mexico, and here we use “.” as a decimal separator. So i need to be able to acept that format in my inputs.

Im using the autobinding feature.
When the user writes 12,3 it’s saved exactly like that on the database tables but then displayed as 12.3 on the input element.
when the user writes 12.3 it’s saved as 123 (the “.” is eliminated)

I need it to work like when user writes 12.3 it stays as 12.3

How can i fix it?

@emmanuel
@NigelG

3 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.