I have the following JQuery http://jsfiddle.net/gg9xnkqq/1/
$(document).ready(function () {
    if( $('.one').hasClass('one') ){
        $('.one').css({ 'color' : '#f00' });
    }
});
and this HTML
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<div class="one">dfv</div>
<span class="one">oiuoiuioou</span>
In the if statement, how can I detect if the type of the element with the class one is not body?
So all elements that are not body and have a certain class, will have their class changed.