Hi all
Im adding rows dynamically to my table (‘ksa’) !
But i would like to add an attribute for the row i’m adding..see below code
<style>
.classover {background-color: white;}
.classout {background-color: blue;}
</style>
function insRow(){
var newRow=document.getElementById(‘ksa’).insertRow(0)
var cell0=newRow.insertCell(0)
var cell1=newRow.insertCell(1)
var cell2=newRow.insertCell(2)
var cell3=newRow.insertCell(3)
var cell4=newRow.insertCell(4)
var cell5=newRow.insertCell(5)
cell0.innerHTML=cntr
cell0.style.display = “none”;
cell1.innerHTML=document.getElementById(‘grpnr’).value;
cell1.style.display = “none”;
cell2.innerHTML=document.getElementById(‘nr’).value;
cell2.style.display = “none”;
cell3.innerHTML=document.getElementById(‘txtantal’).value;
cell4.innerHTML=”stk”;
newRow(0).innerHTML ='<onmouseOver=”this.className=’classover ‘” onmouseOut=”this.className=’classout'”>’;
}
hope somebody can help me…..thanks ?