I have a jQuery datepicker function bound to the \"birthday\" input html element, written in the page header:
You could initialize the date picker for the newly added element within your ajax success callback:
$.ajax({ ... success: function(response) { if(response.success) { $(body).append(response.html); $("#birthday").datepicker(); } } });