|
|
|
14년 전
|
조회 1,660
|
|
|
|
14년 전
|
조회 2,007
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 2,072
|
|
|
|
14년 전
|
조회 2,117
|
|
|
|
14년 전
|
조회 1,305
|
|
|
|
14년 전
|
조회 1,386
|
|
|
|
14년 전
|
조회 1,200
|
|
|
|
14년 전
|
조회 2,844
|
|
|
|
14년 전
|
조회 985
|
|
|
|
14년 전
|
조회 1,145
|
|
|
|
14년 전
|
조회 2,196
|
|
|
|
14년 전
|
조회 2,484
|
|
|
|
14년 전
|
조회 905
|
|
|
|
14년 전
|
조회 1,329
|
|
|
|
14년 전
|
조회 1,086
|
|
|
위즈웍스
|
14년 전
|
조회 1,147
|
|
|
관리자
|
14년 전
|
조회 1,334
|
|
|
|
14년 전
|
조회 1,161
|
|
|
|
14년 전
|
조회 1,059
|
|
|
|
14년 전
|
조회 878
|
|
|
|
14년 전
|
조회 878
|
|
|
|
14년 전
|
조회 1,165
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 1,037
|
|
|
|
14년 전
|
조회 1,073
|
|
|
|
14년 전
|
조회 2,851
|
|
|
|
14년 전
|
조회 1,350
|
|
|
|
14년 전
|
조회 1,531
|
|
|
|
14년 전
|
조회 1,478
|
|
|
|
14년 전
|
조회 1,979
|
|
|
|
14년 전
|
조회 2,399
|
|
|
|
14년 전
|
조회 1,092
|
|
|
|
14년 전
|
조회 1,174
|
|
|
|
14년 전
|
조회 2,188
|
|
|
|
14년 전
|
조회 1,201
|
|
|
관리자
|
14년 전
|
조회 2,519
|
|
|
|
14년 전
|
조회 996
|
|
|
관리자
|
14년 전
|
조회 1,220
|
|
|
|
14년 전
|
조회 1,325
|
|
|
|
14년 전
|
조회 2,396
|
|
|
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 3,607
|
|
|
|
14년 전
|
조회 1,370
|
|
|
|
14년 전
|
조회 893
|
|
|
|
14년 전
|
조회 1,235
|
|
|
|
14년 전
|
조회 1,069
|
|
|
관리자
|
14년 전
|
조회 1,849
|
|
|
|
14년 전
|
조회 935
|
|
|
|
14년 전
|
조회 1,050
|
|
|
|
14년 전
|
조회 1,086
|
|
|
|
14년 전
|
조회 1,142
|
|
|
|
14년 전
|
조회 1,379
|
|
|
|
14년 전
|
조회 1,411
|
|
|
|
14년 전
|
조회 2,028
|
|
|
|
14년 전
|
조회 1,039
|
|
|
|
14년 전
|
조회 1,501
|
|
|
|
14년 전
|
조회 3,285
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 1,557
|
|
|
|
14년 전
|
조회 1,579
|
|
|
|
14년 전
|
조회 2,417
|
|
|
|
14년 전
|
조회 1,612
|
|
|
|
14년 전
|
조회 1,008
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 842
|
|
|
|
14년 전
|
조회 1,084
|
|
|
|
14년 전
|
조회 2,595
|
|
|
|
14년 전
|
조회 1,041
|
|
|
|
14년 전
|
조회 1,048
|
|
|
|
14년 전
|
조회 1,144
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 1,004
|
|
|
관리자
|
14년 전
|
조회 1,280
|
|
|
관리자
|
14년 전
|
조회 1,840
|
|
|
|
14년 전
|
조회 1,091
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 875
|
|
|
|
14년 전
|
조회 942
|
|
|
|
14년 전
|
조회 1,431
|
|
|
관리자
|
14년 전
|
조회 1,740
|
|
|
|
14년 전
|
조회 1,821
|
|
|
관리자
|
14년 전
|
조회 1,269
|
|
|
관리자
|
14년 전
|
조회 1,223
|
|
|
|
14년 전
|
조회 1,727
|
|
|
|
14년 전
|
조회 1,248
|
|
|
관리자
|
14년 전
|
조회 4,344
|
|
|
관리자
|
14년 전
|
조회 2,290
|
|
|
|
14년 전
|
조회 1,081
|
|
|
|
14년 전
|
조회 1,021
|
|
|
|
14년 전
|
조회 3,963
|
|
|
|
14년 전
|
조회 4,631
|
|
|
|
14년 전
|
조회 1,398
|
|
|
관리자
|
14년 전
|
조회 1,576
|
|
|
|
14년 전
|
조회 4,816
|
|
|
|
14년 전
|
조회 1,603
|
|
|
|
14년 전
|
조회 1,386
|
댓글 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());
});