0

I am basically trying to do something like this:

Hiding "Label2" when "Label1" has the class "hide"

<div class="div1">
  <div>
    <form >
      <label class="label1 hide">Label1</label>
    </form>
  </div>
</div>
<div class="div2">
  <label class="label2">Label2</label>
</div>

Is there a way to achieve this in css

  • not possible ... – Temani Afif May 17 '18 at 11:24
  • 1
    These two ways can help in this situation. One Way is triggering a class change event. Another way is by using MutationObserver. Both of which are explained [here](https://stackoverflow.com/questions/19401633/how-to-fire-an-event-on-class-change-using-jquery) – mabhijith95a10 May 17 '18 at 11:33

0 Answers0