|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 1,702
|
|
|
|
14년 전
|
조회 1만
|
|
|
|
14년 전
|
조회 1,224
|
|
|
|
14년 전
|
조회 1,036
|
|
|
|
14년 전
|
조회 1,760
|
|
|
|
14년 전
|
조회 1,800
|
|
|
|
14년 전
|
조회 984
|
|
|
|
14년 전
|
조회 1,061
|
|
|
|
14년 전
|
조회 880
|
|
|
|
14년 전
|
조회 2,525
|
|
|
|
14년 전
|
조회 681
|
|
|
|
14년 전
|
조회 816
|
|
|
|
14년 전
|
조회 1,905
|
|
|
|
14년 전
|
조회 2,172
|
|
|
|
14년 전
|
조회 622
|
|
|
|
14년 전
|
조회 1,000
|
|
|
|
14년 전
|
조회 782
|
|
|
위즈웍스
|
14년 전
|
조회 842
|
|
|
관리자
|
14년 전
|
조회 1,039
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 755
|
|
|
|
14년 전
|
조회 568
|
|
|
|
14년 전
|
조회 556
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 727
|
|
|
|
14년 전
|
조회 2,551
|
|
|
|
14년 전
|
조회 1,026
|
|
|
|
14년 전
|
조회 1,199
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,620
|
|
|
|
14년 전
|
조회 2,014
|
|
|
|
14년 전
|
조회 705
|
|
|
|
14년 전
|
조회 881
|
|
|
|
14년 전
|
조회 1,914
|
|
|
|
14년 전
|
조회 908
|
|
|
관리자
|
14년 전
|
조회 2,198
|
|
|
|
14년 전
|
조회 691
|
|
|
관리자
|
14년 전
|
조회 890
|
|
|
|
14년 전
|
조회 1,015
|
|
|
|
14년 전
|
조회 2,128
|
|
|
|
14년 전
|
조회 938
|
|
|
|
14년 전
|
조회 3,297
|
|
|
|
14년 전
|
조회 1,069
|
|
|
|
14년 전
|
조회 606
|
|
|
|
14년 전
|
조회 933
|
|
|
|
14년 전
|
조회 758
|
|
|
관리자
|
14년 전
|
조회 1,467
|
|
|
|
14년 전
|
조회 649
|
|
|
|
14년 전
|
조회 738
|
|
|
|
14년 전
|
조회 796
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 1,714
|
|
|
|
14년 전
|
조회 736
|
|
|
|
14년 전
|
조회 1,194
|
|
|
|
14년 전
|
조회 2,978
|
|
|
|
14년 전
|
조회 895
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 1,287
|
|
|
|
14년 전
|
조회 1,284
|
|
|
|
14년 전
|
조회 2,129
|
|
|
|
14년 전
|
조회 1,340
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 653
|
|
|
|
14년 전
|
조회 555
|
|
|
|
14년 전
|
조회 781
|
|
|
|
14년 전
|
조회 2,279
|
|
|
|
14년 전
|
조회 731
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 1,056
|
|
|
|
14년 전
|
조회 686
|
|
|
관리자
|
14년 전
|
조회 954
|
|
|
관리자
|
14년 전
|
조회 1,517
|
|
|
|
14년 전
|
조회 762
|
|
|
|
14년 전
|
조회 1,091
|
|
|
|
14년 전
|
조회 541
|
|
|
|
14년 전
|
조회 608
|
|
|
|
14년 전
|
조회 1,079
|
|
|
관리자
|
14년 전
|
조회 1,436
|
|
|
|
14년 전
|
조회 1,504
|
|
|
관리자
|
14년 전
|
조회 961
|
|
|
관리자
|
14년 전
|
조회 898
|
|
|
|
14년 전
|
조회 1,425
|
|
|
|
14년 전
|
조회 945
|
|
|
관리자
|
14년 전
|
조회 4,036
|
|
|
관리자
|
14년 전
|
조회 1,986
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 3,647
|
|
|
|
14년 전
|
조회 4,323
|
|
|
|
14년 전
|
조회 1,081
|
|
|
관리자
|
14년 전
|
조회 1,267
|
|
|
|
14년 전
|
조회 4,500
|
|
|
|
14년 전
|
조회 1,311
|
|
|
|
14년 전
|
조회 1,109
|
댓글 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());
});