Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

select element by data

If you're talking aabout the inner content of an element, this is impossible with CSS3.
However, you can use this for the data attributes of an element:

    div [data-value="foo"] {
          display: block;
    }

- GameGlitz
 
PREVIOUS NEXT
Tagged: #select #element #data
ADD COMMENT
Topic
Name
4+3 =