|
|
|
14년 전
|
조회 1,696
|
|
|
|
14년 전
|
조회 2,051
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 2,150
|
|
|
|
14년 전
|
조회 1,339
|
|
|
|
14년 전
|
조회 1,420
|
|
|
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 2,884
|
|
|
|
14년 전
|
조회 1,022
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 2,223
|
|
|
|
14년 전
|
조회 2,510
|
|
|
|
14년 전
|
조회 937
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 1,125
|
|
|
위즈웍스
|
14년 전
|
조회 1,182
|
|
|
관리자
|
14년 전
|
조회 1,377
|
|
|
|
14년 전
|
조회 1,196
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 902
|
|
|
|
14년 전
|
조회 1,197
|
|
|
|
14년 전
|
조회 1,263
|
|
|
|
14년 전
|
조회 1,066
|
|
|
|
14년 전
|
조회 1,105
|
|
|
|
14년 전
|
조회 2,883
|
|
|
|
14년 전
|
조회 1,391
|
|
|
|
14년 전
|
조회 1,560
|
|
|
|
14년 전
|
조회 1,513
|
|
|
|
14년 전
|
조회 2,016
|
|
|
|
14년 전
|
조회 2,427
|
|
|
|
14년 전
|
조회 1,118
|
|
|
|
14년 전
|
조회 1,202
|
|
|
|
14년 전
|
조회 2,231
|
|
|
|
14년 전
|
조회 1,232
|
|
|
관리자
|
14년 전
|
조회 2,549
|
|
|
|
14년 전
|
조회 1,026
|
|
|
관리자
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 1,366
|
|
|
|
14년 전
|
조회 2,436
|
|
|
|
14년 전
|
조회 1,265
|
|
|
|
14년 전
|
조회 3,643
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 933
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,107
|
|
|
관리자
|
14년 전
|
조회 1,878
|
|
|
|
14년 전
|
조회 969
|
|
|
|
14년 전
|
조회 1,090
|
|
|
|
14년 전
|
조회 1,129
|
|
|
|
14년 전
|
조회 1,170
|
|
|
|
14년 전
|
조회 1,420
|
|
|
|
14년 전
|
조회 1,453
|
|
|
|
14년 전
|
조회 2,060
|
|
|
|
14년 전
|
조회 1,069
|
|
|
|
14년 전
|
조회 1,525
|
|
|
|
14년 전
|
조회 3,327
|
|
|
|
14년 전
|
조회 1,255
|
|
|
|
14년 전
|
조회 1,208
|
|
|
|
14년 전
|
조회 1,596
|
|
|
|
14년 전
|
조회 1,615
|
|
|
|
14년 전
|
조회 2,451
|
|
|
|
14년 전
|
조회 1,646
|
|
|
|
14년 전
|
조회 1,037
|
|
|
|
14년 전
|
조회 998
|
|
|
|
14년 전
|
조회 874
|
|
|
|
14년 전
|
조회 1,120
|
|
|
|
14년 전
|
조회 2,633
|
|
|
|
14년 전
|
조회 1,068
|
|
|
|
14년 전
|
조회 1,084
|
|
|
|
14년 전
|
조회 1,185
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 1,041
|
|
|
관리자
|
14년 전
|
조회 1,320
|
|
|
관리자
|
14년 전
|
조회 1,870
|
|
|
|
14년 전
|
조회 1,128
|
|
|
|
14년 전
|
조회 1,396
|
|
|
|
14년 전
|
조회 910
|
|
|
|
14년 전
|
조회 976
|
|
|
|
14년 전
|
조회 1,464
|
|
|
관리자
|
14년 전
|
조회 1,772
|
|
|
|
14년 전
|
조회 1,856
|
|
|
관리자
|
14년 전
|
조회 1,303
|
|
|
관리자
|
14년 전
|
조회 1,257
|
|
|
|
14년 전
|
조회 1,758
|
|
|
|
14년 전
|
조회 1,287
|
|
|
관리자
|
14년 전
|
조회 4,368
|
|
|
관리자
|
14년 전
|
조회 2,326
|
|
|
|
14년 전
|
조회 1,115
|
|
|
|
14년 전
|
조회 1,048
|
|
|
|
14년 전
|
조회 3,996
|
|
|
|
14년 전
|
조회 4,668
|
|
|
|
14년 전
|
조회 1,429
|
|
|
관리자
|
14년 전
|
조회 1,608
|
|
|
|
14년 전
|
조회 4,852
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 1,424
|
댓글 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());
});