I use jquery to request data and then fill them to a table whose id is ‘mresholder’, it works in webkit and ff but it doesn’t work well in IE. It will append those data behind </table>.
How to solve this or what’s the alternative way to do this?
for(i=0;i<length;i++)
{
song=data.results[i];
o=$('#mresholder').html();
$('#mresholder').html(o+='<tr sid='+song.song_id+' aid='+song.album_id+'><td class="sname">'+song.song_name+'</td><td class="sartist">'+song.artist_name+'</td><td class="salbum">'+song.album_name+'</td></tr>');
};
“sid”, “aid” aren’t valid HTML attributes. Try data-sid, data-aid
also, change
to
(.html() to .append())