using CSS to disable an element

Giganews Newsgroups
Subject: using CSS to disable an element
Posted by:  solaris8…@yahoo.com (Sol)
Date: 29 Jul 2003

Hi,

is it possible to disable an element using CSS? instead of using
document.getElementById("someButton").disabled = true I would like to
use

<style>
..someButton {disabled : true; background : "#D3D3D3"}
</style>

i don't want to use the "visibility : hidden" CSS property because
that hides the element completly.

Replies