<span>one</span> <span>two</span> <span>three</span>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("span").click(function() {
$("span").css("background-color","#fff");
$(this).css("background-color","yellow");
});
});
</script>