Question: datepicker is not working in popup?
Answer: 6 Answers. As @Bluetoft says, the answer is event delegation. The reason it's not working for you is because your datepicker is being bound to elements that exist at the time the script is run (not to mention, the birthday field has a different id than #datepicker, which is what your script is binding to).