|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 1,707
|
|
|
|
14년 전
|
조회 1만
|
|
|
|
14년 전
|
조회 1,227
|
|
|
|
14년 전
|
조회 1,040
|
|
|
|
14년 전
|
조회 1,765
|
|
|
|
14년 전
|
조회 1,807
|
|
|
|
14년 전
|
조회 990
|
|
|
|
14년 전
|
조회 1,065
|
|
|
|
14년 전
|
조회 883
|
|
|
|
14년 전
|
조회 2,529
|
|
|
|
14년 전
|
조회 682
|
|
|
|
14년 전
|
조회 818
|
|
|
|
14년 전
|
조회 1,911
|
|
|
|
14년 전
|
조회 2,176
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 1,004
|
|
|
|
14년 전
|
조회 787
|
|
|
위즈웍스
|
14년 전
|
조회 849
|
|
|
관리자
|
14년 전
|
조회 1,044
|
|
|
|
14년 전
|
조회 860
|
|
|
|
14년 전
|
조회 758
|
|
|
|
14년 전
|
조회 573
|
|
|
|
14년 전
|
조회 563
|
|
|
|
14년 전
|
조회 786
|
|
|
|
14년 전
|
조회 918
|
|
|
|
14년 전
|
조회 760
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 2,554
|
|
|
|
14년 전
|
조회 1,032
|
|
|
|
14년 전
|
조회 1,205
|
|
|
|
14년 전
|
조회 1,180
|
|
|
|
14년 전
|
조회 1,624
|
|
|
|
14년 전
|
조회 2,015
|
|
|
|
14년 전
|
조회 706
|
|
|
|
14년 전
|
조회 889
|
|
|
|
14년 전
|
조회 1,918
|
|
|
|
14년 전
|
조회 916
|
|
|
관리자
|
14년 전
|
조회 2,203
|
|
|
|
14년 전
|
조회 695
|
|
|
관리자
|
14년 전
|
조회 897
|
|
|
|
14년 전
|
조회 1,019
|
|
|
|
14년 전
|
조회 2,132
|
|
|
|
14년 전
|
조회 945
|
|
|
|
14년 전
|
조회 3,301
|
|
|
|
14년 전
|
조회 1,074
|
|
|
|
14년 전
|
조회 615
|
|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 761
|
|
|
관리자
|
14년 전
|
조회 1,472
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 821
|
|
|
|
14년 전
|
조회 1,099
|
|
|
|
14년 전
|
조회 1,137
|
|
|
|
14년 전
|
조회 1,722
|
|
|
|
14년 전
|
조회 740
|
|
|
|
14년 전
|
조회 1,202
|
|
|
|
14년 전
|
조회 2,984
|
|
|
|
14년 전
|
조회 897
|
|
|
|
14년 전
|
조회 859
|
|
|
|
14년 전
|
조회 1,291
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 2,132
|
|
|
|
14년 전
|
조회 1,344
|
|
|
|
14년 전
|
조회 709
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 2,284
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 742
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 1,063
|
|
|
|
14년 전
|
조회 690
|
|
|
관리자
|
14년 전
|
조회 957
|
|
|
관리자
|
14년 전
|
조회 1,523
|
|
|
|
14년 전
|
조회 768
|
|
|
|
14년 전
|
조회 1,095
|
|
|
|
14년 전
|
조회 543
|
|
|
|
14년 전
|
조회 618
|
|
|
|
14년 전
|
조회 1,082
|
|
|
관리자
|
14년 전
|
조회 1,442
|
|
|
|
14년 전
|
조회 1,507
|
|
|
관리자
|
14년 전
|
조회 967
|
|
|
관리자
|
14년 전
|
조회 904
|
|
|
|
14년 전
|
조회 1,427
|
|
|
|
14년 전
|
조회 947
|
|
|
관리자
|
14년 전
|
조회 4,043
|
|
|
관리자
|
14년 전
|
조회 1,989
|
|
|
|
14년 전
|
조회 783
|
|
|
|
14년 전
|
조회 710
|
|
|
|
14년 전
|
조회 3,658
|
|
|
|
14년 전
|
조회 4,327
|
|
|
|
14년 전
|
조회 1,086
|
|
|
관리자
|
14년 전
|
조회 1,272
|
|
|
|
14년 전
|
조회 4,504
|
|
|
|
14년 전
|
조회 1,321
|
|
|
|
14년 전
|
조회 1,115
|
댓글 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());
});