nazar-pc / PickMeUp

Really simple, powerful, customizable and lightweight standalone datepicker
BSD Zero Clause License
616 stars 190 forks source link

how to apply value in two input for range datepicker #203

Closed niteshkumar-singh closed 5 years ago

niteshkumar-singh commented 6 years ago

how to apply value in two input for range date picker

nazar-pc commented 6 years ago

Range mode supports getting and setting dates as an array of 2 items, so you can just get values from those 2 fields and call .set_date([date_from, date_to]).

niteshkumar-singh commented 6 years ago

It show show error : Uncaught ReferenceError: date_from is not defined

nazar-pc commented 6 years ago

Of course, you have to create variable with that name and put contents of corresponding input into it.