I just wanted it to "grey out" along with the text box that I was
disabling. I actually found a solution. I was attempting to use the
document.form.elements collection but the <span> that contained the
label text isn't stored in the that collection. If you use the
document.all.item() function to get the <span> based on its ID and set
..disabled = "disabled" it works.
Dave
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:<el**************@TK2MSFTNGP10.phx.gbl>...
A label is just some text. It has no functionality, so how do you envision
disabling it? In what way would the label act differently once it was
'disabled'?
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"headware" <he******@aol.com> wrote in message
news:e3**************************@posting.google.c om... Is there a way to enable/disable a label through javascript?
Thanks,
Dave