Created
November 16, 2017 21:17
-
-
Save A-Programmer/3d64473a486ca671e8798b6ac488dfcb to your computer and use it in GitHub Desktop.
ajax post
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
$(dosument).ready(function() | |
{ | |
$.ajax() | |
{ | |
url:'url of action', | |
data:{json:data}, | |
type:'POST', | |
success: function() | |
{ | |
alert('done'); | |
}, | |
error: function() | |
{ | |
alert('error'); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment