select a class inside a section Tag

I have the following fiddle in which it works by hovering over a class,however I have not managed to make it work when surrounded by tags. How can I make it work

Thanks in Advance

<section class="section1">
    <div class="ButtonChange">
        Hover Here
    </div>
</section>


<section class="section2">
    <div class="changecolor">
       Text Sample
    </div>
</section>



<div class="ButtonChange2">
    Hover Here 2
</div>


<div class="changecolor2">
    Text Sample 2
</div>

http://jsfiddle.net/Jhonc66/380k4m7g/

Answers


Try this:

.section1:hover ~ .section2 .changecolor {
    color:red;
}

Need Your Help

Logitech Unifying Receiver Protocol?

usb network-protocols wireless sl4a logitech

Is there a place where I can find documentation or an SDK about the Logitech Unifying Receiver?

Why is devise registration#create, :trackable doing an INSERT instead of UPDATE?

postgresql ruby-on-rails-4 devise

Hi, I'm using Devise 3.5.3 in a Rails 4.2.4 app running MRI 2.2.3 configured thus: