Reputation: 6082
What is the CSS selector for elements which have HTML5 [hidden] set to true?
I do not want to select elements whose [hidden] is false.
Thanks
Upvotes: 0
Views: 42
Reputation: 92
Here is the full list of all selectors: https://www.w3schools.com/cssref/css_selectors.asp
if your hidden property of element is a attribute like:
<p hidden="true">
then the selector is
var my_hidden_element = $("p[hidden=true]");
Upvotes: 1
Reputation: 12478
[hidden]{
}
Or
element[hidden]{
}
The syntax is
[attribute=value]
The value
is optional
Upvotes: 2