-2

I am trying to remove a div targeting it with a data selector.

css

[data-id="b5c3cde7-8aa1"]  {
    display:none;
}

does not work. Is is possible?

Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
LeBlaireau
  • 16,087
  • 30
  • 105
  • 176

1 Answers1

5

you have to add this attribute to the div then hide it:

[data-id="b5c3cde7-8aa1"]  {
    display:none;
}
<div data-id="b5c3cde7-8aa1">hide me</div>
Suchit kumar
  • 11,638
  • 3
  • 18
  • 43