I am having a anchor tag whose text is turning gray when disabled. I know this the default IE treatment of anything that is disabled.
I am trying to overwrite the color of the anchor tag with the below mentioned CSS using a[disabled=""]
and a[disabled="disabled"]. However both classes are not working.
<a href="www.google.com" disabled="">Google</a>
CSS:
a:link, a:active, a:visited {
color: blue !important;
display: block;
font: bold 12px;
padding-left: 5px;
position: relative;
text-decoration: none;
width: auto;
line-height: 35px;
}
a.[disabled=""] , a[disabled="disabled"]
{
color: blue !important;
cursor: default;
}
Another method which I tried, is using a JQuery to add inline style.
if ($("a").attr('disabled', "")) {
$("a").css({ "color": "blue" })
}
None of the above is working. Is there any solution for this?