disable lables on client side

S

Steve C. Orr [MVP, MCSD]

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'?
 
H

headware

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top