Adding CSS to to when creating a tablecell in javascript
<p>I'm creating a tablecell in javascript and trying to add a css style that I created but for some reason its not working. I know im close but not sure exactly whats wrong here is my code below: The bold line is where im having the trouble</p>

<pre><code>    var cellLeft = row.insertCell(0);
    var el = document.createElement('input');
    el.type = 'text';
    el.id = 'textField1';
    **cellLeft.setAttribute("class", "MainTableHeader");**
    cellLeft.appendChild(el);
</code></pre>
