I\'ve got a jQuery datepicker that is working great for me, except when I fresh the content via ajax, I lose the datepicker. From what I can tell I should be using jQuery on
I've got a similiar problem: After an ajax page reload I can't set new datepicker with $(element).datepicker(). Because Datepicker only does once a clean initialization, I just set directly after ajax success:
$.datepicker.initialized = false;
Now the next $(element).datepicker() will cause a fresh initialization. This affects all datepicker on the side, so you may have reset datpicker outside the ajax-container.