using CSS to disable an element

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sol

    using CSS to disable an element

    Hi,

    is it possible to disable an element using CSS? instead of using
    document.getEle mentById("someB utton").disable d = 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.
  • David Dorward

    #2
    Re: using CSS to disable an element

    Sol wrote:[color=blue]
    > is it possible to disable an element using CSS?[/color]

    No, CSS is presentational.

    --
    David Dorward http://david.us-lot.org/
    Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming
    it'll stop pop-up ads? -- Dork Tower

    Comment

    Working...