Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question