disable lables on client side

  • Thread starter Thread starter headware
  • Start date Start date
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 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
 
Back
Top