|
|
|
14년 전
|
조회 1,759
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,640
|
|
|
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 2,172
|
|
|
|
14년 전
|
조회 2,210
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,304
|
|
|
|
14년 전
|
조회 2,949
|
|
|
|
14년 전
|
조회 1,093
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 2,280
|
|
|
|
14년 전
|
조회 2,585
|
|
|
|
14년 전
|
조회 1,012
|
|
|
|
14년 전
|
조회 1,434
|
|
|
|
14년 전
|
조회 1,176
|
|
|
위즈웍스
|
14년 전
|
조회 1,255
|
|
|
관리자
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 1,161
|
|
|
|
14년 전
|
조회 973
|
|
|
|
14년 전
|
조회 958
|
|
|
|
14년 전
|
조회 1,239
|
|
|
|
14년 전
|
조회 1,328
|
|
|
|
14년 전
|
조회 1,139
|
|
|
|
14년 전
|
조회 1,154
|
|
|
|
14년 전
|
조회 2,940
|
|
|
|
14년 전
|
조회 1,454
|
|
|
|
14년 전
|
조회 1,626
|
|
|
|
14년 전
|
조회 1,576
|
|
|
|
14년 전
|
조회 2,052
|
|
|
|
14년 전
|
조회 2,476
|
|
|
|
14년 전
|
조회 1,159
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 2,296
|
|
|
|
14년 전
|
조회 1,299
|
|
|
관리자
|
14년 전
|
조회 2,608
|
|
|
|
14년 전
|
조회 1,086
|
|
|
관리자
|
14년 전
|
조회 1,301
|
|
|
|
14년 전
|
조회 1,431
|
|
|
|
14년 전
|
조회 2,504
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 3,709
|
|
|
|
14년 전
|
조회 1,464
|
|
|
|
14년 전
|
조회 1,004
|
|
|
|
14년 전
|
조회 1,332
|
|
|
|
14년 전
|
조회 1,172
|
|
|
관리자
|
14년 전
|
조회 1,927
|
|
|
|
14년 전
|
조회 1,027
|
|
|
|
14년 전
|
조회 1,147
|
|
|
|
14년 전
|
조회 1,197
|
|
|
|
14년 전
|
조회 1,249
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 1,510
|
|
|
|
14년 전
|
조회 2,130
|
|
|
|
14년 전
|
조회 1,133
|
|
|
|
14년 전
|
조회 1,589
|
|
|
|
14년 전
|
조회 3,388
|
|
|
|
14년 전
|
조회 1,305
|
|
|
|
14년 전
|
조회 1,271
|
|
|
|
14년 전
|
조회 1,658
|
|
|
|
14년 전
|
조회 1,667
|
|
|
|
14년 전
|
조회 2,508
|
|
|
|
14년 전
|
조회 1,704
|
|
|
|
14년 전
|
조회 1,103
|
|
|
|
14년 전
|
조회 1,066
|
|
|
|
14년 전
|
조회 924
|
|
|
|
14년 전
|
조회 1,188
|
|
|
|
14년 전
|
조회 2,687
|
|
|
|
14년 전
|
조회 1,130
|
|
|
|
14년 전
|
조회 1,145
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 1,468
|
|
|
|
14년 전
|
조회 1,102
|
|
|
관리자
|
14년 전
|
조회 1,373
|
|
|
관리자
|
14년 전
|
조회 1,932
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 965
|
|
|
|
14년 전
|
조회 1,031
|
|
|
|
14년 전
|
조회 1,528
|
|
|
관리자
|
14년 전
|
조회 1,832
|
|
|
|
14년 전
|
조회 1,922
|
|
|
관리자
|
14년 전
|
조회 1,355
|
|
|
관리자
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 1,817
|
|
|
|
14년 전
|
조회 1,350
|
|
|
관리자
|
14년 전
|
조회 4,432
|
|
|
관리자
|
14년 전
|
조회 2,385
|
|
|
|
14년 전
|
조회 1,180
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 4,048
|
|
|
|
14년 전
|
조회 4,720
|
|
|
|
14년 전
|
조회 1,482
|
|
|
관리자
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 4,921
|
|
|
|
14년 전
|
조회 1,688
|
|
|
|
14년 전
|
조회 1,480
|
댓글 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());
});