Autor Zpráva
Greeg
Profil
mam formular s checkboxami m1,m2,m3....m(mcount) a xcel som napisat script ktory by ich oznacil vsetky naraz

for (var i=1; i <= mcount; i++)

{
var sprava = 'm'+i;
formular.sprava.checked = true;
}


ale clovek mieni a java meni... pls kde robim xybu? je aj nejaky lepsi sposob ako to urobit? thx
Greeg
Profil
nikoho nic nenapada? alebo to mam tak uplne scestne napisane? :(
sakalik
Profil *
for(var i=1; i<=mcount;i++)
{
document.forms["meno_formularu"].elements["m"+i].checked=true;
}
Toto téma je uzamčeno. Odpověď nelze zaslat.

0