0

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,753
  • 72
  • 57
  • 129
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192

1 Answers1

10

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,809
  • 3
  • 22
  • 44