About the author

Vijay Kodali
E-mail me Send mail

Site Statistics

Site Meter

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Disabled button not grayed out in Firefox and Chrome

When button is disabled, it’s not-clickable in all browsers. However in Firefox and Chrome, the button looks enabled, though the user cannot click it.

Reason:

From W3Scholl, "Enabled" Property isn't standard property of XHTML 4.

Solution:

You can modify the way they look with CSS

button[disabled] { 
 color:Grey;
/* Add other  styles here for disable button */ 
} 

Posted by vijay on Thursday, August 12, 2010 9:08 PM
Permalink | Comments (3) | Post RSSRSS comment feed

Comments

Manikandan India

Monday, June 17, 2013 2:45 AM

Manikandan

use like below
   btnFullAdvisoryAddToCart.ForeColor = System.Drawing.Color.Gray;

Manikandan India

Monday, June 17, 2013 2:47 AM

Manikandan

use like below
   btnSubmit.ForeColor = System.Drawing.Color.Gray;

mobiq.biz

Thursday, July 11, 2013 6:53 AM

pingback

Pingback from mobiq.biz

.prop disable is not working in Chrome and Firefox | Mobiq

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading