일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- heroku
- Easy
- JAVA11
- Kadane's Algorithm
- SpringBoot 2
- 수학
- 사칙연산
- 자바입력
- hash table
- scanner
- input
- 카데인 알고리즘
- array
- R
- 자바 스레드 실행 순서 제어
- 자바 thread 실행 순서 제어
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