<style>
#test{
background-color:#b10515; width=440px;
}
</style>
<script>
...
...
cell[k]=document.createElement('td');
var cont = document.createElement('a');
switch(k){
case 0:
cont.innerHTML = jsArray[c].count;
cell[k].className = 'test';
break;
}
Above is my code. In my speculation, cell[k] should have test css style since I set cell[k]
css class as test css. However, test css style was not attached to cell[k] when I run on Tomcat.
can anybody tell me what am I doing wrong with my coding?