How to change the minimum value of the input field?

Hello!

There is a select with multiple options. After selecting any of them,the minimum value of the field input should change,but I found only how to change just the value.

Code:
https://jsfiddle.net/yax1epod/

Thanks in advance!
June 10th 19 at 14:43
2 answers
June 10th 19 at 14:45
Solution
priceInput.setAttribute('min',minPrice);
June 10th 19 at 14:47
Solution
Thank you,it works! - nikita.Stracke commented on June 10th 19 at 14:50
the answer with an example was given earlier, or niasilil? - adelia33 commented on June 10th 19 at 14:53
don't be offended,I, too, thank) - nikita.Stracke commented on June 10th 19 at 14:56
the point is that here service question-answer, rather than specifying the solution. That is, given only information to help you, not solve the problem for you. Thus others who will face this issue, will be able to deal with common answer - adelia33 commented on June 10th 19 at 14:59

Find more questions by tags JavaScript