I've just started using jQuery, but am a bit stuck. I am building a table dynamically in javascript and am adding classes all the time to cells (for styling), so I would like to use the addClass
function:
var row = table.insertRow(-1);
var cell = row.insertCell(0);
cell.addClass('boldRow');
but this does not work. I know you can use the magic $('')
function to be able to use jQuery, but can I use it on 'native' HTMLElement references?