I'm trying to apply css
rule for multiple values of html
attribute.
I've tried to apply it like described here, with no success:
input[name="a"][name="b"] {
display: none;
}
<input name="a"> <!-- should be hidden -->
<input name="b"> <!-- should be hidden -->
<input name="c"> <!-- should not be hidden -->
The rule isn't applied at all.
However, when I use only one attribute selector, it works for that one matching element:
input[name="a"] {
display: none;
}
<input name="a"> <!-- is hidden -->
<input name="b"> <!-- is not hidden -->
What am I doing wrong / is there any way to define it except duplicating rules?