Jump to content
php.lv forumi

CSS klases pievienošana elementam


KillerBean

Recommended Posts

Sveiki, jautājums par to, kā var pievienot klasi elementam..

var input = document.createElement("input");
input.id = "veselas_"+count;
input.name = field;
input.type = "text";
li.appendChild(input);
field_area.appendChild(li);

ar input.class= "lauks"; nenjem :( un inner_HTML >> field_area.innerHTML += "<li><input type='text' name='"+field+"' id='veselas_"+count+"' class='aile'/></li>"; arī neder :(

Link to comment
Share on other sites

×
×
  • Create New...