Skip to content

Instantly share code, notes, and snippets.

@davemo
Forked from cmelbye/gist:317193
Created February 28, 2010 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davemo/317199 to your computer and use it in GitHub Desktop.
Save davemo/317199 to your computer and use it in GitHub Desktop.
$('form.section_edit_form').live('submit', function () {
var section_id = $(this).parent().attr('id').split("_")[1];
$.ajax({
url: "/wiki/ajax/section_edit/?section_id=" + section_id,
type: "POST",
data: $(this).serialize(),
success: function(data) {
$(this).parent().html(data);
}
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment