A
A
Alexander2017-10-07 16:39:47
1C-Bitrix
Alexander, 2017-10-07 16:39:47

How to set input + js field range?

Hello. Tell me: you need to set the range for entering numbers in input from 10 to 100. If the number is greater or less, then the maximum or minimum should be substituted for the input number, respectively. How to do it in js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-10-07
@Shoorek

Here's what I got: https://codepen.io/palehin/pen/yzvGWX
The solution is not perfect.
Without jQuery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question