1 개요[ | ]
- jQuery .hide()
html
Copy
<style>
.box1 {
width: 150px; height: 150px;
background: red;
}
</style>
<button id='btn-hide-box1'>박스 숨김</button>
<div class='box1'></div>
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$(function() {
$("#btn-hide-box1").click(function() {
$(".box1").hide();
});
});
</script>
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.