JQM, Jquery Form Plugin, and returning to original state
Trying to submit a form using Jquery Form Plugin. I can refresh the div with the original div upon submitting successfully, but I am loosing all JQM markup. What should I do so that it returns to the same original state before submitting the input?
- <script>
- $(document).ready(function () {
- var options = {
- target: '#audcontent',
- beforeSubmit: showRequest,
- success: showResponse
- $('#audform').submit(function () {
- $(this).ajaxSubmit(options);
- return false;
- });
- });
- function showRequest(formData, jqForm, options) {
- var queryString = $.param(formData);
- return true;
- }
- function showResponse() {
- alert('Password Changed') $('#audcontent').load('./ #audcontent');
- }
- </script>