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);
}