웹마스터 팁
page_full_width">
[jQuery] 클릭하면 내용이 사라지는 방법
2014.03.07 13:02
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>클릭하면 내가 없어집니다</p>
<p>클릭하면 내가 없어집니다</p>
<p>클릭하면 내가 없어집니다</p>
</body>
</html>