Why does jQuery UI’s datepicker break with a dynamic DOM?
Ah, got it. Right after I append the HTML to the DOM I run this on all the inputs I’d like to have a datepicker pop up with. Datepicker adds a class to elements it has been attached to, so we can filter out existing inputs and only apply it to new ones. $(‘.date’).not(‘.hasDatePicker’).datepicker(); I … Read more