Menu
I have a function that dynamically creates a table.
“`
function createDisplayTable(rn,cn)
{
for(var r=0;r<parseInt(rn,10);r++)
{
var x=displayTable.insertRow(r);
for(var c=0;c<parseInt(cn,10);c++)
{
var y= x.insertCell(c);
}
}
}
However, in order to use a JQuery/bootstrap module, I need to change the top row (heading) cell tags from td to <th class=”filter”>
What is the javascript command to change the table top row (heading) cell tags from td to <th class=”filter”>