I am trying to fade the body of the page so that the background color is what it fades to. I have a div that is nested several layers in the document that I do not want to fade.
body > .container > .bootstrap-body > .do_not_fade_this_div
html
<body>
<div class="container">
<div class="bootstrap-body">
<div class="do_not_fade_this_div"></div>
</div>
</div>
</body>
jquery
I tried this but this will fade the body but also the div I dont want.
$('body').children(':not(.container > .bootstrap-body > .do_not_fade_this_div)').fadeTo("fast", 0.2);
This fades the background and not .do_not_fade_this_div
like I want but since it is not fading the body the color is wrong.
$('.bootstrap-body').children(':not(.do_not_fade_this_div)').fadeTo("fast", 0.2);
How do I fade the body and not that particular div?