study/jQuery (2) 썸네일형 리스트형 [jQuery]prop("checked") 와 is(":checked")의 차이는 무엇일까? 💡 오늘은 체크박스에서 체크여부를 확인하거나 컨트롤할 때 유용하게 쓰이는 prop("checked")와 is(":checked")의 차이점을 알아보겠습니다. 👀이전 포스팅 https://yeonzzy.tistory.com/21 [jQuery] attr()과 prop()의 차이점은 무엇일까? 💡 오늘은 attr()과 prop()의 차이점을 알아보겠습니다. attr() VS prop() jQuery 1.6.0 업데이트로 attr() 과 prop() 두 개로 나눠졌다. - attr() : HTML 속성 (Attribute) 취급 - prop() : javascrip.. yeonzzy.tistory.com prop("checked") VS is(":checked") jQuery 1.6.0 이상을 사용하는 경우 .. [jQuery] attr()과 prop()의 차이점은 무엇일까? 💡 오늘은 attr()과 prop()의 차이점을 알아보겠습니다. attr() VS prop() jQuery 1.6.0 업데이트로 attr() 과 prop() 두 개로 나눠졌다. - attr() : HTML 속성 (Attribute) 취급 - prop() : javascript 프로퍼티 (Property) 취급 ** 속성(Attribute) 은 HTML 요소에 대한 추가 정보를 전달하며 쌍으로 제공 ** 프로퍼티(Property) 는 HTML DOM트리의 특성으로 javaSctipt / jQuery를 통해 수정된 요소의 값을 가져오는데 사용하는 것이 좋음 // .html // .js // attr() var text = $("input[type=text]"); console.log(chk.attr("id".. 이전 1 다음