4
How do I make a Javascript to block comma usage , within the field and at the same time also make an informed notification that point only . is allowed and also check if what the user has typed is correct.
I don’t have much knowledge in Javascript and I didn’t think much about it, the most I could find was onKeyCode and there was another that I forgot but got nothing.
Example: current weight: 70.80
Maybe add
evt.preventDefault()within theifto block, in fact, the use of the comma?– Woss
@Andersoncarloswoss, edited, had forgotten this detail :)
– Denis Rudnei de Souza