|
|
|
14년 전
|
조회 1,403
|
|
|
|
14년 전
|
조회 1,734
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 1,072
|
|
|
|
14년 전
|
조회 1,795
|
|
|
|
14년 전
|
조회 1,831
|
|
|
|
14년 전
|
조회 1,008
|
|
|
|
14년 전
|
조회 1,093
|
|
|
|
14년 전
|
조회 911
|
|
|
|
14년 전
|
조회 2,553
|
|
|
|
14년 전
|
조회 706
|
|
|
|
14년 전
|
조회 844
|
|
|
|
14년 전
|
조회 1,938
|
|
|
|
14년 전
|
조회 2,199
|
|
|
|
14년 전
|
조회 654
|
|
|
|
14년 전
|
조회 1,029
|
|
|
|
14년 전
|
조회 814
|
|
|
위즈웍스
|
14년 전
|
조회 880
|
|
|
관리자
|
14년 전
|
조회 1,077
|
|
|
|
14년 전
|
조회 887
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 600
|
|
|
|
14년 전
|
조회 587
|
|
|
|
14년 전
|
조회 808
|
|
|
|
14년 전
|
조회 942
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 757
|
|
|
|
14년 전
|
조회 2,579
|
|
|
|
14년 전
|
조회 1,064
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 1,651
|
|
|
|
14년 전
|
조회 2,047
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 919
|
|
|
|
14년 전
|
조회 1,936
|
|
|
|
14년 전
|
조회 939
|
|
|
관리자
|
14년 전
|
조회 2,228
|
|
|
|
14년 전
|
조회 726
|
|
|
관리자
|
14년 전
|
조회 930
|
|
|
|
14년 전
|
조회 1,048
|
|
|
|
14년 전
|
조회 2,153
|
|
|
|
14년 전
|
조회 978
|
|
|
|
14년 전
|
조회 3,335
|
|
|
|
14년 전
|
조회 1,101
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 966
|
|
|
|
14년 전
|
조회 798
|
|
|
관리자
|
14년 전
|
조회 1,503
|
|
|
|
14년 전
|
조회 681
|
|
|
|
14년 전
|
조회 769
|
|
|
|
14년 전
|
조회 822
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 1,125
|
|
|
|
14년 전
|
조회 1,170
|
|
|
|
14년 전
|
조회 1,746
|
|
|
|
14년 전
|
조회 779
|
|
|
|
14년 전
|
조회 1,224
|
|
|
|
14년 전
|
조회 3,014
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 892
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 1,310
|
|
|
|
14년 전
|
조회 2,161
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 742
|
|
|
|
14년 전
|
조회 687
|
|
|
|
14년 전
|
조회 593
|
|
|
|
14년 전
|
조회 818
|
|
|
|
14년 전
|
조회 2,317
|
|
|
|
14년 전
|
조회 766
|
|
|
|
14년 전
|
조회 774
|
|
|
|
14년 전
|
조회 879
|
|
|
|
14년 전
|
조회 1,096
|
|
|
|
14년 전
|
조회 723
|
|
|
관리자
|
14년 전
|
조회 983
|
|
|
관리자
|
14년 전
|
조회 1,548
|
|
|
|
14년 전
|
조회 796
|
|
|
|
14년 전
|
조회 1,120
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 648
|
|
|
|
14년 전
|
조회 1,113
|
|
|
관리자
|
14년 전
|
조회 1,468
|
|
|
|
14년 전
|
조회 1,542
|
|
|
관리자
|
14년 전
|
조회 1,005
|
|
|
관리자
|
14년 전
|
조회 936
|
|
|
|
14년 전
|
조회 1,463
|
|
|
|
14년 전
|
조회 986
|
|
|
관리자
|
14년 전
|
조회 4,073
|
|
|
관리자
|
14년 전
|
조회 2,020
|
|
|
|
14년 전
|
조회 827
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 3,688
|
|
|
|
14년 전
|
조회 4,361
|
|
|
|
14년 전
|
조회 1,111
|
|
|
관리자
|
14년 전
|
조회 1,297
|
|
|
|
14년 전
|
조회 4,534
|
|
|
|
14년 전
|
조회 1,345
|
|
|
|
14년 전
|
조회 1,137
|
댓글 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());
});