본문 바로가기

web application

07.10 - jQuery Reference - .attr() Original Reference : http://api.jquery.com/attr/ Contents: attr( attributeName ) .attr( attributeName ) attr( attributeName, value ) .attr( attributeName, value ) .attr( map ) .attr( attributeName, function(index, attr) ) .attr( attributeName ) / Returns : String 설명 : 일치하는 요소에 대하여 지정된 요소에 대한 속성의 값을 가져옵니다. .attr (attributeName) - 추가된 버젼 1.0 attributeName 얻으려는 특성의 이름입니다. 중요. .attr() 메서드는 일치하는 요소들 .. 더보기
07.10 - jQuery Reference - .addClass() .addClass(className) 설명 : 각각의 일치하는 요소에 대해 지정된 클레스를 추가합니다. Original Reference : http://api.jquery.com/addClass/ .addClass (className) - 추가된 버젼 1.0 className 일치하는 요소에 추가할 하나 이상의 클레스 이름. .addClass ( function(index, class) ) - 추가된 버젼 1.4 funtion(index, class) A function returning one or more space-separated class names to be added. Receives the index position of the element in the set and the old cl.. 더보기
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 내용을 설.. 더보기