T
T
TuMko2020-11-26 22:22:29
JavaScript
TuMko, 2020-11-26 22:22:29

How to implement range year picker?

It is necessary to implement such a range year picker. I could not find a suitable jQuery plugin, mostly datepickers come across, where the period on the calendar in days is selected. Can someone tell me a suitable plugin or how to implement this picker myself? In my mind, there are two inputs (select), while the 2nd will depend on the 1st to determine the gap.
5fbfff4547bc8943111121.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-11-26
@Igor_307

you can do it yourself, here the logic is as simple as possible, it’s not a date where you need to take into account a bunch of things
, there are two arrays with numbers,
you output both into two divs,
after clicking on the first one, loop through the second one and block what is less than the selected one
, select the second one - insert these two values ​​into input and close your yearpicker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question