Button not clickable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thew
    New Member
    • Aug 2010
    • 69

    Button not clickable?

    How can i get an button not clickable? like it is gray, and already pressed?
  • londres9b
    New Member
    • Apr 2010
    • 106

    #2
    It's very simple, just add the attribute disabled.

    Code:
    <button type="button" [B]disabled="disabled"[/B]>I am Disabled</button>
    or :

    Code:
    <input type="button" [B]disabled="disabled"[/B] value="I am Disabled" />
    Last edited by londres9b; Aug 18 '10, 02:11 PM.

    Comment

    • zorgi
      Recognized Expert Contributor
      • Mar 2008
      • 431

      #3
      Code:
      <input type="button" [B]disabled="disabled"[/B]>I am Disabled</button>
      Is wrong. You probably meant something like this

      Code:
      <input type="button" disabled="disabled" value="I am Disabled" />

      Comment

      • londres9b
        New Member
        • Apr 2010
        • 106

        #4
        Code:
        <input type="button" disabled="disabled">I am Disabled</button>
        Is wrong. You probably meant something like this

        Code:
        <input type="button" disabled="disabled" value="I am Disabled" />
        You are absolutely right. Thanks :D

        Comment

        • Thew
          New Member
          • Aug 2010
          • 69

          #5
          okay thanks all :)

          Comment

          Working...