<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="js/jquery.js"></script>
</head>
<body>
<div id="s2">
<p>我是第一个p元素</p>
<p>我是第二个p元素</p>
<p>我是第三个p元素</p>
</div>
<script>
$(function(){
$("#s2").on('click',function(){
$("#s2>p").eq(1).css("background","orange");
});
});
</script>
</body>
</html>