Those with IE, right-click in your browser. Notice the context menu has some options that are grey'ed out to mean "disabled" -- I know I can do that with form elements and checkboxes and the like, but can that be done with text?
Ever so grateful,
Like that was hard! You can do it one of two ways:
1. <div id="disme" disabled ... >This text is disabled</div>
2. <div id="disme" ... >This text is also disabled</div>
Hope that helps someone
making text appear disabled
If we look at the W3's HTML spec for disabled (http://www.w3.org/TR/html401/interact/forms.html#adef-disabled), it says
The following elements support the disabled attribute: BUTTON, INPUT, OPTGROUP, OPTION, SELECT, and TEXTAREA.
Also IE just seems to have changed the text colour to gray. Why not just make a class ".disabled" and set what you want disabled text to look like?
one good reason
There was actually another cool reason to use "disabled" as a single attribute (like nowrap) inside a div, because it does two things:
Now I don't know if you can do some tag like "studly" and then say:
//hi you big hunk of div tag..
cause I haven't tried it but it's nice to have a tag accomplish two things.
Elegance is always better than legality