Changing Opacity of All Elements but One Div
- by waiwai933
I'm trying to fade all elements on a webpage except for one div. I've been able to fade all the elements with the following jQuery:
$('*').css('opacity', .3);
However, it seems as if opacity is a property that inherits from parent elements, even if I explicitly set the opacity of the div to 1. I'm drawing a blank as to any solutions right now, so can I have some help here?