显示隐藏
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#btn1").click(function () { $("div").hide() });//div隐藏
$("#btn2").click(function () { $("div").show() });//div显示
$("#btn3").click(function () { $("div").toggle() });//切换
});
</script>
</head>
<body>
<div>hello</div>
<input id="btn1" type="button" value="隐藏"/>
<input id="btn2" type="button" value="显示"/>
<input id="btn3" type="button" value="切换"/>
</body>
</html>