How can I limit a field to 2 ranges of numbers?

  Kiến thức lập trình

I have a number field that takes numbers between 0.25 and 5

I would like for it to also have the option to take between 15 ~ 300… so a user can input either:

0.25 ~ 5 OR 15 ~ 300

<input class="form-control square" min="0.25" max="5" step="0.01" type="number" name="hashtag">

This is the current element

LEAVE A COMMENT