본문 바로가기

Web Application/jQuery

07.10 - jQuery Reference - Attributes

Attributes
다음 메서드들은 DOM 요소의 특성을 설정하거나 가져옵니다.

Original Reference : http://api.jquery.com/category/attributes/

.addClass() 
CSS, Class Attribute
각각의 일치하는 요소에 대해 지정된 클레스를 추가합니다.

.attr()
General Attibutes
일치하는 요소에 대하여 지정된 요소에 대한 속성의 값을 가져옵니다.

.hasClass()
CSS, Class Attribute
- Determine whether any of the matched elements are assigned the given class.

.html()
DOM Insertion, Inside
일치하는 요소의 HTML 내용을 설정합니다.

.removeAttr()
General Attibutes
일치하는 요소에 대한 특정 요소의 속성을 제거합니다.

.removeClass()
CSS, Class Attribute
일치하는 요소에 대한 단일, 복수 또는 모든 클레스를 제거합니다.

.toggleClass()
CSS, Class Attribute
- Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.

.val()
Forms, General Attributes
일치하는 요소에 대한 현재 값을 가져옵니다.

2010.07.10 - 레퍼런스 일부 번역
2010.07.10 / 레퍼런스 번역 & 정리 - by Kinesis(김 해광)
- 불법적인 펌이나 스크랩, 편집, 재유포를 금지합니다.
- 필요하다면 이 페이지로 접근할 수 있는 링크를 남겨주세요.

 

'Web Application > jQuery' 카테고리의 다른 글

07.10 - jQuery Reference - .attr()  (0) 2010.07.10
07.10 - jQuery Reference - .addClass()  (0) 2010.07.10