JQuery date picker no longer loads when form is refreshed with .load()
Posted on 2011-03-14
I have a form that is part of a page, the user fills it out, submits the form, the form is submitted using AJAX, when the AJAX completes, the form section of the page is reloaded using
When this happens, the datepicker widget no longer functions, as it's tied to the loading of the entire page. I've tried using
Inside the section that is being reloaded with .load, but that isn't working.
I'm looking for either a solution that allows the datepicker widget to be refreshed on the reload, or a way of clearing the form fields after the form is submitted.