Here is a nice plugin for jQuery that submits forms via ajax:
http://malsup.com/jquery/form/
its as simple as:
It uses the forms action for the post location.
Not that you can't achieve this with your own code but this plugin has worked very nicely for me!