There is such a script, at the press of a button, creates a table row, is it possible to make the generated one have a view for example. The bottom line is that I can't get hooked by another script to this line.

function addContact () { var tb = document.getElementById ('contacts'), ro = tb.insertRow (-1); NUMS = (!self.NUMS) ? 1 : ++NUMS; var ce = ro.insertCell (0), inp = document.createElement ('div'); inp.innerHTML = NUMS; ce.appendChild (inp); inp.className = ('drag'); inp.id ="Dialog" + NUM; inp.style.background ='red'; var ce = ro.insertCell (-1), inp = document.createElement ('input'); inp.name = 'name' + NUMS; ce.appendChild (inp); var ce = ro.insertCell (-1), inp = document.createElement ('input'); inp.name = 'text' + NUMS; ce.appendChild (inp); var ce = ro.insertCell (-1), inp = document.createElement ('input'); inp.name = 'status' + NUMS; ce.appendChild (inp); } 

The problem is that the property works and everything is set, but as trstyle1, trstyle2 .... for each line

 ro.className = ('trstyle') ; 
  • Nothing is clear. - Qwertiy

0