|
|
|
14년 전
|
조회 1,376
|
|
|
|
14년 전
|
조회 1,716
|
|
|
|
14년 전
|
조회 1만
|
|
|
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 1,049
|
|
|
|
14년 전
|
조회 1,774
|
|
|
|
14년 전
|
조회 1,815
|
|
|
|
14년 전
|
조회 997
|
|
|
|
14년 전
|
조회 1,073
|
|
|
|
14년 전
|
조회 899
|
|
|
|
14년 전
|
조회 2,535
|
|
|
|
14년 전
|
조회 688
|
|
|
|
14년 전
|
조회 830
|
|
|
|
14년 전
|
조회 1,914
|
|
|
|
14년 전
|
조회 2,182
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 795
|
|
|
위즈웍스
|
14년 전
|
조회 860
|
|
|
관리자
|
14년 전
|
조회 1,059
|
|
|
|
14년 전
|
조회 869
|
|
|
|
14년 전
|
조회 764
|
|
|
|
14년 전
|
조회 583
|
|
|
|
14년 전
|
조회 569
|
|
|
|
14년 전
|
조회 793
|
|
|
|
14년 전
|
조회 923
|
|
|
|
14년 전
|
조회 767
|
|
|
|
14년 전
|
조회 738
|
|
|
|
14년 전
|
조회 2,562
|
|
|
|
14년 전
|
조회 1,043
|
|
|
|
14년 전
|
조회 1,218
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 2,023
|
|
|
|
14년 전
|
조회 716
|
|
|
|
14년 전
|
조회 897
|
|
|
|
14년 전
|
조회 1,925
|
|
|
|
14년 전
|
조회 921
|
|
|
관리자
|
14년 전
|
조회 2,215
|
|
|
|
14년 전
|
조회 707
|
|
|
관리자
|
14년 전
|
조회 907
|
|
|
|
14년 전
|
조회 1,028
|
|
|
|
14년 전
|
조회 2,142
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 3,311
|
|
|
|
14년 전
|
조회 1,086
|
|
|
|
14년 전
|
조회 624
|
|
|
|
14년 전
|
조회 954
|
|
|
|
14년 전
|
조회 773
|
|
|
관리자
|
14년 전
|
조회 1,486
|
|
|
|
14년 전
|
조회 665
|
|
|
|
14년 전
|
조회 756
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 831
|
|
|
|
14년 전
|
조회 1,104
|
|
|
|
14년 전
|
조회 1,144
|
|
|
|
14년 전
|
조회 1,731
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 1,210
|
|
|
|
14년 전
|
조회 2,997
|
|
|
|
14년 전
|
조회 911
|
|
|
|
14년 전
|
조회 872
|
|
|
|
14년 전
|
조회 1,303
|
|
|
|
14년 전
|
조회 1,296
|
|
|
|
14년 전
|
조회 2,139
|
|
|
|
14년 전
|
조회 1,356
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 570
|
|
|
|
14년 전
|
조회 794
|
|
|
|
14년 전
|
조회 2,294
|
|
|
|
14년 전
|
조회 747
|
|
|
|
14년 전
|
조회 755
|
|
|
|
14년 전
|
조회 859
|
|
|
|
14년 전
|
조회 1,076
|
|
|
|
14년 전
|
조회 701
|
|
|
관리자
|
14년 전
|
조회 966
|
|
|
관리자
|
14년 전
|
조회 1,535
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 1,106
|
|
|
|
14년 전
|
조회 552
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 1,095
|
|
|
관리자
|
14년 전
|
조회 1,449
|
|
|
|
14년 전
|
조회 1,518
|
|
|
관리자
|
14년 전
|
조회 978
|
|
|
관리자
|
14년 전
|
조회 913
|
|
|
|
14년 전
|
조회 1,440
|
|
|
|
14년 전
|
조회 959
|
|
|
관리자
|
14년 전
|
조회 4,053
|
|
|
관리자
|
14년 전
|
조회 1,995
|
|
|
|
14년 전
|
조회 797
|
|
|
|
14년 전
|
조회 718
|
|
|
|
14년 전
|
조회 3,667
|
|
|
|
14년 전
|
조회 4,340
|
|
|
|
14년 전
|
조회 1,097
|
|
|
관리자
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 4,517
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 1,122
|
댓글 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());
});