Closed niteshkumar-singh closed 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.
Dear Sir, i need clear input if i click on cancel or close button and set if i click on ok button
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.
Thanks
How to clear input value after selecting date