If above code works for you, the reason it's wasn't working for you is because your datepicker is being bound to elements that exist at the time the script is run.

Another possible cause of this can be, Datepicker is working fine, but it is hidden beside Modal pop-up, so in this case basically you need higher CSS z-index of datepicker to show over modal pop-up, add this CSS and try again

.datepicker{ z-index:99999 !important; }?

one of the above solutions should resolve your issue.

2

At:- 7/10/2018 3:49:00 PM
Updated at:- 7/10/2018 3:52:51 PM

Excellent answer with proper details, I had to implement both first and second solution to make it work.
0