Skip to content

Instantly share code, notes, and snippets.

@z3bbster
Created May 25, 2013 12:03
Show Gist options
  • Save z3bbster/5648865 to your computer and use it in GitHub Desktop.
Save z3bbster/5648865 to your computer and use it in GitHub Desktop.
$.getJSON('someurl', {somedata}, function(json_data){
//no need for parsejson
//use the json_data object
var table_obj = $('table');
$.each(json_data, function(index, item){
table_obj.append($('<tr id="'+item.id+'"><td>'+item.data+'</td></tr>'));
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment