Is that possible to change other element css when element has selected. For example the code bellow have div.allgametap_wrapper , inside have div.allgame_tabitem,div.clear and div.tabtitle . What I mean is I have using js to switch the class selected inside div.allgame_tabitem , when div.allgame_tabitem has class selected the div.tabtitle inside it self div.allgametap_wrapper will change to css #fff (white).
<div class="allgametap_wrapper">
<div class="allgame_tabitem onlinegametab"></div>
<div class="clear"></div>
<div class="tabtitle" style="color:#666;"></div>
</div>
<div class="allgametap_wrapper">
<div class="allgame_tabitem allgametab selected"></div>
<div class="clear"></div>
<div class="tabtitle" style="color:#666;"></div>
</div>
JS Switch Selected Code
$(".allgame_tab_container div div.allgame_tabitem").on('click', function (e) {
e.preventDefault();
var $this = $(this);
$(".allgame_tab_container div div.allgame_tabitem").removeClass('selected');
$this.addClass('selected');
});