datepicker does not open on first click?
3 Answers. You don't have to use the click event to start the date picker. All you have to do is remove the click event and it will work! The date picker is already attached to your input box and will handle the events by itself.