티스토리 뷰
.attr()
HTML 문서에서 선택된 요소의 attribute 속성을 변경한다.
// 1개인 경우
$('선택자').attr('속성', '값');
// 1개 이상인 경우
$('선택자').attr({'속성':'값', '속성':'값'});
See the Pen [jQuery] attr() 메서드 by mill (@millfeel) on CodePen.
[공부좌표]
인터랙티브 웹디자인북 p93
'이론 > jQuery' 카테고리의 다른 글
[jQuery] 선택자의 순서 값을 찾아주는 .index() 메서드 (0) | 2021.10.23 |
---|---|
[jQuery] 애니메이션 .stop() .animate() (0) | 2021.10.23 |
[jQuery] 탐색 구문 .children() .parent() .find() .eq() 등 (0) | 2021.10.22 |
[jQuery] 실행 시점 제어하기 .on() (0) | 2021.10.22 |
[jQuery/제이쿼리] on() / off() / trigger() (0) | 2021.10.13 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- javascript class
- 일치 연산자
- scrollTop
- 점 표기법
- 링크막기 #a링크막기
- clinetTop
- 대괄포 표기법
- 객체의 프로퍼티
- 동치 연산자
- outerHeight
- offsetHeight
- @font-face
- constructor
- clientHeight
- 부등 연산자
- __proto__
- prototype 프로퍼티
- 프로퍼티
- scrollHeight
- 동등 연산자
- [[Prototype]]
- innerHeight
- offsetTop
- 불일치 연산자
- property
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함