var dossierTable= document.getElementById('DossierTable');
var newRow = dossierTable.insertRow(currentRowIndex + 1);
var newTable = '<td colspan=\'11\'>';
newTable += '<div id=\'' + divId + '\'><img src=\'./img.gif\'/></div</td>';
newRow.innerHTML = newTable;
I have an issue in IE with this code snippets above due to innerHTML. This works perfectly with Chrome and Firefox but not with IE. But with IE if I run Developer Tools F12 and I change the document version to 11 it works as long the developer tools is open. When it's closed the issue appears again.
Someone have and idea about how to solve this issue. Thank in advance.