Can someone give me a hand getting this right. Using the jQuery Form Plugin on http://malsup.com/jquery/form/ I am trying to submit a form but the script I am having problems with. I know its wrong...but cant figure out how to remove the duplicate post and url parts.
$(document).ready(function() { $('#UpdateForm').bind('submit', function() { var queryString = $('#UpdateForm').formSerialize(); $.post('/update', queryString); $(this).ajaxSubmit({ type: 'post', url: '/update', target: '#userForm', success: function() {alert(queryString);} }); return false; // <-- important! }); }); Can someone point out the correct way to set up this function? Thanks, Dave