nazar-pc / PickMeUp

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

How to clear input value after selecting date #204

Closed niteshkumar-singh closed 6 years ago

niteshkumar-singh commented 6 years ago

How to clear input value after selecting date

nazar-pc commented 6 years ago

Well, just listen to change event and whenever change happens clear input. However, I don't really understand why do you even need an input in that case.

niteshkumar-singh commented 6 years ago

Dear Sir, i need clear input if i click on cancel or close button and set if i click on ok button

nazar-pc commented 6 years ago

element.value ='' with plain JavaScript should be fine. Similarly you can set value with date whe user clicks OK. These are very basics of JavaScript.

niteshkumar-singh commented 6 years ago

Thanks