Skip to content

Instantly share code, notes, and snippets.

@mickhan
Last active December 17, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickhan/5683459 to your computer and use it in GitHub Desktop.
Save mickhan/5683459 to your computer and use it in GitHub Desktop.
jquery ajax
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
url: "/ajax_url",
type: "POST",
data: {
"dataname": data
},
dataType: "json",
success:function(data_info){
alert(data_info);
}
})
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment