<!DOCTYPE html>
<html>
<head>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
</head>
<style>
.selected{background:yellow;}
</style>
<body>
<div><span>Hello</span></div>
<input id=s1 type=button value='ww'>
<input id=s2 type=button value='xx'>
<input id=s3 type=button value='xx'>
<script>
$(document).ready(function(){
$("#s1").click(function(){
$("#101").addClass('selected').siblings().removeClass('selected');
})});
$(document).ready(function(){
$("#s2").click(function(){ $("#102").addClass('selected').siblings().removeClass('selected');
})});
$(document).ready(function(){
$("#s3").click(function(){ $("#103").addClass('selected').siblings().removeClass('selected');
})});
</script>
</body>
</html>
多看看教程;熟练使用;