<html>
<head>
<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<script type="text/javascript">
$(document).ready(
function()
{
$("button").click(
function(){
$("p").hide();
}
);
}
);
</script>
</head>
<body>
<h3>這是標題:點擊按鈕裏面的文字就會消失</h3>
<p>this is a paragraph </p>
<p>this is anther paragraph </p>
<button type="button"> 點擊</button>
</body>
</html>