Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 메소드
- Eclips
- 이클립스
- JSP
- 메서드
- 전화걸기
- 클래스
- Graphic
- Menu
- layout
- 오버로딩
- 기본
- HTML
- mybatis
- 예외처리
- Android
- oracle
- 배열
- Spring
- AWT
- 생성자
- 에러페이지
- OGNL
- 안드로이드
- paint
- 어노테이션
- JavaScript
- Java
- struts2
- 국제화
Archives
- Today
- Total
note
문서 객체의 제거 / remove()메서드 본문
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script src="http://code.jquery.com/jquery-1.7.js"></script>
<script>
$(document).ready(function (){
$('h1').first().remove();
});
</script>
<body>
<div>
<h1>Header-0</h1>
<h1>Header-1</h1>
</div>
</body>
</html>
first().remove()를 사용하여
Header-0 이 제거됨
'JavaScript > jQuery' 카테고리의 다른 글
| empty() 메서드 (0) | 2012.03.21 |
|---|---|
| html() 메서드 (0) | 2012.03.21 |
| removeAttr()메서드 (0) | 2012.03.21 |
| attr()메서드 Getter / Setter / (0) | 2012.03.21 |
| removeClass()메서드 (0) | 2012.03.21 |