<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
<div class="sites_actions">click</div>
<script type="text/javascript">
$(function(){
$('.sites_actions').click(function(){
$(this).removeClass().addClass('sites_info');
alert($(this).attr('class'));
});
});
</script>