Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app = {
- submitForm: function(formID, doReload) {
- $.ajax({
- url: $(formID).attr('action'),
- method: $(formID).attr('method'),
- data: $(formID).serialize(),
- dataType: 'json',
- success: function() {
- var d = doReload;
- return function(response) {
- console.log(d);
- }
- }()
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment