using CSS to disable an element

S

Sol

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.
 

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
474,077
Messages
2,570,569
Members
47,206
Latest member
MalorieSte

Latest Threads

Top