I have a problem that I have been told to fix. The code that is there work perfectly in Firefox, but throws errors in IE and will not work.
Code:
var newtbody = document.createElement("tbody");
newtbody.id = "ROW"+newkey;
document.getElementById(trElement).parentNode.insertBefore(newtbody,document.getElementById(trElement));
newtbody.innerHTML = gcp;
gcp has the HTML for inside the tbody tag. The error I get in IE is the "Unknown runtime error". I have tried some of the "solutions" that I have seen online but none have worked. Can anyone help?
|