Possible Duplicate:
Convert JSON array to an HTML table in jQuery
I'm trying desperately to figure out out to make this table...
I have 3 fields I need to be in the same <td>
and another field by itself in a <td>
I am successfully getting the data with JSON to my page with this code:
$.ajax({
url: 'code.php',
async: false,
dataType: 'json',
success: function (json) {
window.upc = json.upc;
window.img_name = json.img_name;
window.quantity = json.quantity;
window.description = json.description;
}
});
How can I get this data to be formatted like I want?
|TEXT|image|
|TEXT|goes|
|TEXT|here|