Click to See Complete Forum and Search --> : Label element


gnanesh
04-21-2003, 11:02 AM
Hi

I have an drop down , based on some conditions i need to disable the LABEL element, I have an ID for LABEL element,
but if i call

document.all.id.disabled = true

It gives me an error,

If any one know how do i disable the label element please let me know

thanks
gnanesh

pyro
04-21-2003, 11:09 AM
document.all is an IE4 property. You'll have better luck with document.getElementById("idname")

gnanesh
04-21-2003, 11:11 AM
Thanks for that, but i just posted like that i.,e document.all
infact i have document.<formname>.id(id of Label).disabled = true

Let me know if i can able to pass disabled to label element

thanks
gnanesh