html table string to dom table

serkan sendur 0 Tallied Votes 138 Views Share

converts the html tables which are created by string concatenation to dom table objects

function ConvertHtmlTableToDom(tableString)
   {
        var tempDiv = document.createElement("div");
        tempDiv.innerHTML = tableString;
        var domTable = tempDiv.firstChild;
        return domTable;
   }