26 sty 2010

Złączenie tabeli w string w JS

function funct(t) {
  var test = ["test", "test2"].join("");
  document.getElementById(t).setAttribute('title', test);
  alert(test);
}