Is there a CSS selector for disabled input type="submit"
or "button"
?
Should I just use input[type="submit"][disabled]
?
Does that work in IE6?
This question is related to
css
css-selectors
submit-button
I used @jensgram solution to hide a div that contains a disabled input. So I hide the entire parent of the input.
Here is the code :
div:has(>input[disabled=disabled]) {
display: none;
}
Maybe it could help some of you.
As said by jensgram, IE6 does not support attribute selector. You could add a class="disabled" to select the disabled inputs so that this can work in IE6.
Source: Stackoverflow.com