리자

DOM Element 로 사용

· 2008-12-12 (금) 09:27:46 · 2533
$("#id").get(0)

돔 엘리먼트로 사용할 수 있습니다.

예)

<select id="sel">
<option value="val">text</option>
</select>


var selectbox = $("#sel").get(0);

alert(selectbox.options[selectbox.selectedIndex].value);
[이 게시물은 관리자님에 의해 2011-10-31 16:55:28 jQuery에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 08-12-13 조회 4,942
jQuery 08-12-12 조회 5,863
기타 08-12-12 조회 2,534
jQuery
[jQuery]
08-12-11 조회 3,278
기타 08-12-10 조회 3,554
MySQL 08-12-06 조회 3,751
MySQL 08-11-30 조회 4,017
jQuery 08-11-26 조회 5,115
jQuery 08-11-25 조회 3,797
jQuery 08-11-25 조회 3,136
jQuery 08-11-25 조회 5,954
jQuery 08-11-25 조회 5,012
jQuery 08-11-21 조회 5,620
JavaScript 08-11-21 조회 5,338
기타 08-11-20 조회 4,171
jQuery 08-11-20 조회 4,256
jQuery 08-11-19 조회 4,409
jQuery 08-11-19 조회 4,706
jQuery 08-11-18 조회 4,423
jQuery 08-11-15 조회 2,885
기타 08-11-14 조회 3,003
JavaScript 08-11-14 조회 2,873
jQuery 08-11-14 조회 3,676
jQuery 08-11-13 조회 4,392
jQuery 08-11-12 조회 1.2만
기타 08-11-07 조회 1.1만
JavaScript 08-11-03 조회 3,417
PHP 08-11-01 조회 3,107
기타 08-10-30 조회 3,045
JavaScript 08-10-30 조회 2,479