Created
August 31, 2011 18:51
-
-
Save michaelaguiar/1184369 to your computer and use it in GitHub Desktop.
JQuery AJAX Request
This file contains hidden or 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
| var data = $(this).serialize(); | |
| $.ajax({ | |
| type: 'POST', | |
| url: 'URLHERE', | |
| data: data, | |
| success: function(response) { | |
| $('#result').html(response); | |
| }, | |
| complete: function() { | |
| // Complete | |
| }, | |
| error: function() { | |
| // Error | |
| } | |
| }); | |
| return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment