<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>jquery元素隐藏与显示 - www.plcxue.com</title>
<script type="text/jscript" src="jquery/jquery-1.10.2.js"></script>
<script type="text/
javascript">
$(document).ready(function () {
$("#but1").click(function () {
$("#tex1").hide();
});
})
$(document).ready(function () {
$("#but2").click(function () {
$("#tex1").show();
});
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="button" value="客户端隐藏" onclick="document.getElementById('tex1').style.display='none'" />
<input type="button" value="客户端显示" onclick="document.getElementById('tex1').style.display='inline'" />
<input type="button" value="$客户端隐藏" id="but1" />
<input type="button" value="$客户端显示" id="but2" />
<input type="text" id="tex1" />
</div>
</form>
</body>
</html>