M
M
Mirzhalol Mirkhomitov2021-06-18 08:16:48
JavaScript
Mirzhalol Mirkhomitov, 2021-06-18 08:16:48

How can I divide the sum into triads in input mode in input fields?

When entering in the field, the number must be divided into triads. That is, I write 123456, it should be divided by 123 456 immediately upon entering. How can this be implemented in JS or Jquery?
For example, I enter
60cc2baf86d4e626803925.png
and when entering there should be a
60cc2bc775f43937077082.png

Link to the page on which work is being done: https://texnomart.uz/ru/katalog/smartfony

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Khegay, 2021-06-18
@Mirami97

If jQuery, then there is jquery-mask-plugin and inputmask .
If JS, then inputmask/vanilla

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question