87,963
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function(){
$("#list span").click(function(){
$("#list span").removeClass("cls")
$(this).addClass("cls")
});
});
</script>
<style type="text/css">
.cls {border:1px solid black;}
</style>
<div id="list">
<span id="s1">aa </span>
<span id="s2">bb </span>
<span id="s3">cc </span>
</div>