일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 자바입력
- 자바 thread 실행 순서 제어
- 사칙연산
- R
- hash table
- 자바 스레드 실행 순서 제어
- heroku
- Kadane's Algorithm
- 카데인 알고리즘
- array
- SpringBoot 2
- Easy
- input
- scanner
- JAVA11
- 수학
Archives
- Today
- Total
DeFacto-Standard IT
[JQuery] attr() / prop() 본문
.attr() - HTML의 속성(attribute)을 취급
.prop() - JavaScript의 property를 취급
예를들어
<a id="to_comments" href="#comments">클릭</a> 라는 element에 대해
var $link = $('#to_comments');
alert($link.attr('href')); -> 결과 #to_comment
alert($link.prop('href')); -> 결과 http://example.com/path/to/page#to_comment
'JavaScript > JQuery' 카테고리의 다른 글
[JQuery] html() / text() / val() (0) | 2017.11.16 |
---|
Comments