|
|
|
14년 전
|
조회 1,804
|
|
|
|
14년 전
|
조회 2,159
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,684
|
|
|
|
14년 전
|
조회 1,494
|
|
|
|
14년 전
|
조회 2,204
|
|
|
|
14년 전
|
조회 2,256
|
|
|
|
14년 전
|
조회 1,447
|
|
|
|
14년 전
|
조회 1,526
|
|
|
|
14년 전
|
조회 1,339
|
|
|
|
14년 전
|
조회 2,994
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,290
|
|
|
|
14년 전
|
조회 2,327
|
|
|
|
14년 전
|
조회 2,622
|
|
|
|
14년 전
|
조회 1,060
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 1,234
|
|
|
위즈웍스
|
14년 전
|
조회 1,296
|
|
|
관리자
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,311
|
|
|
|
14년 전
|
조회 1,218
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 1,016
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,370
|
|
|
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 1,206
|
|
|
|
14년 전
|
조회 3,000
|
|
|
|
14년 전
|
조회 1,499
|
|
|
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 1,626
|
|
|
|
14년 전
|
조회 2,083
|
|
|
|
14년 전
|
조회 2,504
|
|
|
|
14년 전
|
조회 1,196
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 2,335
|
|
|
|
14년 전
|
조회 1,340
|
|
|
관리자
|
14년 전
|
조회 2,650
|
|
|
|
14년 전
|
조회 1,134
|
|
|
관리자
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 2,550
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 3,757
|
|
|
|
14년 전
|
조회 1,503
|
|
|
|
14년 전
|
조회 1,038
|
|
|
|
14년 전
|
조회 1,372
|
|
|
|
14년 전
|
조회 1,214
|
|
|
관리자
|
14년 전
|
조회 1,953
|
|
|
|
14년 전
|
조회 1,070
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 1,283
|
|
|
|
14년 전
|
조회 1,519
|
|
|
|
14년 전
|
조회 1,564
|
|
|
|
14년 전
|
조회 2,164
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 3,424
|
|
|
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,306
|
|
|
|
14년 전
|
조회 1,695
|
|
|
|
14년 전
|
조회 1,708
|
|
|
|
14년 전
|
조회 2,551
|
|
|
|
14년 전
|
조회 1,755
|
|
|
|
14년 전
|
조회 1,139
|
|
|
|
14년 전
|
조회 1,105
|
|
|
|
14년 전
|
조회 962
|
|
|
|
14년 전
|
조회 1,231
|
|
|
|
14년 전
|
조회 2,737
|
|
|
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 1,278
|
|
|
|
14년 전
|
조회 1,518
|
|
|
|
14년 전
|
조회 1,144
|
|
|
관리자
|
14년 전
|
조회 1,415
|
|
|
관리자
|
14년 전
|
조회 1,972
|
|
|
|
14년 전
|
조회 1,220
|
|
|
|
14년 전
|
조회 1,505
|
|
|
|
14년 전
|
조회 1,004
|
|
|
|
14년 전
|
조회 1,070
|
|
|
|
14년 전
|
조회 1,551
|
|
|
관리자
|
14년 전
|
조회 1,883
|
|
|
|
14년 전
|
조회 1,954
|
|
|
관리자
|
14년 전
|
조회 1,398
|
|
|
관리자
|
14년 전
|
조회 1,356
|
|
|
|
14년 전
|
조회 1,862
|
|
|
|
14년 전
|
조회 1,390
|
|
|
관리자
|
14년 전
|
조회 4,469
|
|
|
관리자
|
14년 전
|
조회 2,434
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 4,093
|
|
|
|
14년 전
|
조회 4,761
|
|
|
|
14년 전
|
조회 1,525
|
|
|
관리자
|
14년 전
|
조회 1,708
|
|
|
|
14년 전
|
조회 4,955
|
|
|
|
14년 전
|
조회 1,727
|
|
|
|
14년 전
|
조회 1,521
|
댓글 1개
// 뒤쪽에 옵션 추가
$("#myselect").append("<option value='1'>Apples</option>");
$("#myselect").append("<option value='2'>After Apples</option>");
// 앞쪽에 옵션 삽입
$("#myselect").prepend("<option value='0'>Before Apples</option>");
// 옵션변경
$("#myselect").html("<option value='1'>Some oranges</option><option value='2'>More Oranges</option><option value='3'>Even more oranges</option>");
// 인덱스 위치에 따라 옵션 변경
$("#myselect option:eq(1)").replaceWith("<option value='2'>Some apples</option>");
$("#myselect option:eq(2)").replaceWith("<option value='3'>Some bananas</option>");
// 2번째 옵션 셀렉트
$("#myselect option:eq(2)").attr("selected", "selected");
// 해당 텍스트를 가진 옵션 셀렉트
$("#myselect").val("Some oranges").attr("selected", "selected");
// 해당값을 가진 옵션 셀렉트
$("#myselect").val("2");
// 선택 옵션 제거
$("#myselect option:eq(0)").remove();
// 첫번째 옵션 제거
$("#myselect option:first").remove();
// 마지막 옵션 제거
$("#myselect option:last").remove();
// 셀렉트된 옵션 텍스트 리턴
alert($("#myselect option:selected").text());
// 셀렉트된 옵션 값리턴
alert($("#myselect option:selected").val());
// 셀렉트된 인덱스 리턴
alert($("#myselect option").index($("#myselect option:selected")));
// Alternative way to get the selected item
alert($("#myselect option:selected").prevAll().size());
// Insert an item in after a particular position
$("#myselect option:eq(0)").after("<option value='4'>Some pears</option>");
// Insert an item in before a particular position
$("#myselect option:eq(3)").before("<option value='5'>Some apricots</option>");
// Getting values when item is selected
$("#myselect").change(function() {
alert($(this).val());
alert($(this).children("option:selected").text());
});