Czesc , w JS zrobilem cos takiego :
if (document.getElementById(id).checked)
{
document.getElementById(id).style.backgroundColor= 'white';
document.getElementById(id).removeAttribute("readonly");
}
else
{
document.getElementById(id).style.backgroundColor= '#E5E5E5';
document.getElementById(id).setAttribute("readonly","readonly");
}
w Firefox wszystko pieknie dziala ale w IE w ogóle go nierusza ustawienie czy usuniecie atrybutu "readonly".
0
0
Rzeczywiście, ciekawe, a nie możesz ustawić w tym elemencie disabled = true; ?
0
proponuję document.getElementById(id).setAttribute("onclick", "return false;");
w przypadku disabled = true dane nie będą przesyłane POST'em
0
Niesamowite, dziala
document.getElementById("count_art2_"+$param).setAttribute("disabled", "true");
"Readonly" dziwnie sie zachowuje...