Skip to content

Instantly share code, notes, and snippets.

@baversjo
Created March 25, 2011 23:12
Show Gist options
  • Save baversjo/887829 to your computer and use it in GitHub Desktop.
Save baversjo/887829 to your computer and use it in GitHub Desktop.
jquery form ajax submit and refresh tabs
$('form').submit(function(){
var $form = $(this);
$.post('ajax/somefile.php?action=updatesomething',$form.serialize(),function(){
$('#contactTabs').find('.tabClass');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment