Created
February 26, 2017 04:42
-
-
Save banhaclong20/45c34c6d678877f2b6f26799e965a83e to your computer and use it in GitHub Desktop.
Form Submit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#siteForm').on('submit', function (e) { | |
$.ajax({ | |
type: "POST", | |
url: $(this).attr('action'), | |
data: $(this).serialize() | |
}).done(function () { | |
$('#sideProof').hide('fast'); | |
$('#rightContent').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