jquery? ???? ??? ???? ???? ??? ?????? ? ????? jquery?? ?? ??? ?? ??? ???? ??? ???? ?? ??? ? ?? ?? ??? ?? ??? ??? ? ????. ??? ??? ???? ??? ? ??? ????.
jquery?? ?? ??? ? ?? ??? ???? ???? ?? ? ??? ????.
1 ??? ??? ????? hide() ? show() ???? ?????.
2 ???? ??() ???? ?????. and show elements
? ? ???? ?? ??? ? ??? ??? ????? ???????.
hide() ? show() ???? ?? ??? ? ??? ?????.
jquery? hide() ???? ??? ??? ? ?????.
jquery? show() ???? ??? ???? ? ?????.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn1").click(function(){
$("p").hide();
});
$(".btn2").click(function(){
$("p").show();
});
});
</script>
</head>
<body>
<p>這是一段測(cè)試文字。</p>
<button class="btn1">Hide--隱藏</button>
<button class="btn2">Show--顯示</button>
</body>
</html>
Rendering:

??? ??? ???? hide() ???? ???? ??? ?? ? ????.

?? ??? ???? show() ???? ???? ??? ??? ??? ? ????.

toggle() ???? ?? ??? ? ??? ?????(??? ?? ?? ??).
toggle() ???? ??? ?? ??, ? ?? ??? ?? ??? ??? ? ????.
toggle() ???? ??? ??? ????? ??? ?????. ??? ??? ??? ??? ?? ??? ?????.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn").click(function(){
$("p").toggle();
});
</script>
</head>
<body>
<p>這是一段測(cè)試文字。</p>
<button class="btn">toggle()</button>
</body>
</html>
???:

??: jquery ???? ??? ? hide(), show(),ggle() ?? ?? ????? ??? ???? ?? jquery.js ??? ???? ???.
??: ? ??? ?? ??? ?? ?? ??? ???? ?? jquery? ?? ?????. ??? ?? ???? ??? ?? ?? ??? ? ? ????. ? ?? ?? ????? ??? jQuery Video Tutorial, JavaScript Video Tutorial, bootstrap Video Tutorial? ?????.
? ??? jquery? ?? ??? ?? ?? ??? ???? ??(?? ?)? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!