Last active
March 1, 2017 08:14
-
-
Save mrOrlando/40151055e611032b0c97c70318ad3e40 to your computer and use it in GitHub Desktop.
ajax
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
$.ajax({ | |
method: 'POST', | |
url: url('ClassName', 'json_method'), | |
data: { | |
"id": id, | |
"name": name | |
}, | |
dataType: 'json', | |
success: function(data) { | |
console.log('data: ', data); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment