Skip to content

Instantly share code, notes, and snippets.

@cawa87
Created December 24, 2014 10:26
Show Gist options
  • Save cawa87/bc4bd117fef97b7f99c7 to your computer and use it in GitHub Desktop.
Save cawa87/bc4bd117fef97b7f99c7 to your computer and use it in GitHub Desktop.
Ajax
$('#asideRegisterForm').on('submit', function (e) {
$.ajax({
type: "POST",
url: $(this).attr('action'),
data: $(this).serialize()
}).done(function () {
$('#asideRegisterForm').hide('fast');
$('#asideRegister').show('fast');
});
return false;
});
/** Data */
data: JSON.stringify({
'answer': tinymce.activeEditor.getContent(),
'question': $("#admin_faq_page_edit_questionText").val(),
'faqId': faqId
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment