$('.test *').filter(function() { var boolValue = $(this).css("position") === 'fixed'; if (boolValue) { $(this).css("position", "relative"); } });
<div class="test"> <span style="position:fixed;">a</span> <span style="position: fixed;">b</span> <span class="myclass">c</span> </div>
.myclass { position: fixed; }