Show only class-A at the top of the page while hiding all other classes (x,x,c).
Hide only class-A while showing all other classes (x,x,c).
Is it possible to achieve this?
<div class="x">
<div class="y">
<div class="z"></div>
</div>
</div>
<div class="A">
<div class="y">
<div class="z"></div>
</div>
</div>
<div class="x">
<div class="w">
<div class="q"></div>
</div>
</div>
<div class="C">
<div class="p">
<div class="s"></div>
</div>
</div>
It would be ideal if the code contains only class-A without mention of other classes (x,c), as they may change dynamically.
I attempted this solution: http://jsfiddle.net/smilyface/qX546/