My problem is that the html variable returns something like this: [object Object][object Object][object Object][object Object][object Object], instead of the elements.
What should i do different?
var html = '';
$.each(data.response, function(index, value) {
var tr = $('<tr>');
var tr_data = '<td>asd</td>';
html += tr.data('trackinfo',value).html(tr_data);
});
$(target).html(html);
datavariable contains. I'm guessing JSON?