본문 바로가기

타쿠꺼

검색하기
타쿠꺼
프로필사진 kimtaku

  • 분류 전체보기 (71)
    • Daily Study (13)
    • Web Study (12)
    • ETC. (3)
    • HTML (4)
      • Study (0)
      • Reference (3)
      • Problem (1)
    • CSS (14)
      • Study (6)
      • Reference (7)
      • Problem (1)
    • Javascript (16)
      • Study (11)
      • Reference (5)
      • Problem (0)
    • jQuery (3)
      • Study (2)
      • Reference (1)
      • Problem (0)
    • PHP (0)
    • Book (1)
    • Font (4)
      • Korean (1)
      • English (3)
      • etc (0)
    • Brackets (1)
    • Skin (0)
      • Data (0)
    • Photoshop (0)
    • Illustrator (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • 문스토리
«   2025/07   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록jQuery/Reference (1)

타쿠꺼

jQuery 간단정리

Attributes: 속성값 다루기 - .attr() : attribute를 가져옴 / 설정 (첫번째요소 / 모든요소)- .prop() : prop을 가져옴 / 설정 (첫번쨰요소 / 모든요소) 여기서 attr과 prop은 비슷한데, attr은 html 태그에 기술되어 있는 속성값을 다룬다면, prop은 태그에 대한 기능을 다룬다.대개 form과 관련하여 attr과 prop의 사용이 나뉘는데 위와 같이 있을 경우 $('input').prop('checked') : true$('input').attr('checked') : checked 와 같이 표현된다. attr은 태그의 속성값을 그대로 가져오고, prop은 기능을 가져온다. function method() {console.log('method');}위와..

jQuery/Reference 2016. 5. 27. 03:48
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바