studiouz, Можешь и так и так , там разницы нет , если после кода пиши лучше так
///PHP CODE.............
?>
<script>$('#wrapper a').click(function() {
if ($(this).attr('class') != $('#wrapper').attr('class') ) {
$('#wrapper').attr('class',$(this).attr('class'));
}
});</script>
<?php
///PHP CODE.............