$('p').hide() - 모든 p 요소 숨김

Last Updated: 2016년 07월 28일 | | 댓글 남기기

$("p").hide()

모든 <p> 요소를 숨깁니다.

예제:

<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>

<h2>제목</h2>

<p>첫 번째 문장.</p>
<p>다른 문장.</p>

<button>클릭</button>

</body>

실행 예:
jQuery-hide all p elements

(Source: w3schools.com)


댓글 남기기

Leave a Comment

할인 소식
Divi 레이아웃 AI 출시 기념 할인!
AI로 이미지, 텍스트, 코딩, 전체 페이지 레이아웃 생성 가능
베스트셀링 워드프레스 테마 Divi
0
0
시간
0
0
Limited Time Offer
You This Coupon Code in Checkout
Click the code to Copy