6 sie 2008

Dynamiczne dodanie markera A do strony

var rA = document.createElement('a');

rA.setAttribute('href', 'javascript:removeRow(\'n' + count + '\');');
rA.appendChild(document.createTextNode('Remove'));

function removeRow(rowId) {
  var elem = document.getElementById(rowId);
}