L
L
lexstile2021-06-03 16:39:01
JavaScript
lexstile, 2021-06-03 16:39:01

Why doesn't onChange work for input with type number when you enter a dot or comma?

There is an input, set the number type to it.
Hung onChange - does not work when you enter a dot or comma.
Works only when you enter a number.

I changed the type to text, of course - it worked.

Is this normal behavior or am I missing something somewhere?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
docker1, 2019-02-12
@docker1

You have an excellent level of English (if this is a really confirmed result, not an ordinary test from the Internet), so do not be lazy to look for tasks in English.
In general, isn't it time to start a pet project? In the process of googling how to solve the problems that have arisen, you yourself will feel how the skill will grow.

S
sim3x, 2019-02-11
@sim3x

https://www.codewars.com/?language=javascript

A
Alexey10, 2019-02-11
@Alexey10

Here's who helped me get off the ground:
https://coursehunters.net/course/javascript-intens...
https://coursehunters.net/course/javascript-intens...

O
Oleg Otkidach, 2021-06-03
@Allegro75

Maybe enter a Russian dot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question