|
|
|
14년 전
|
조회 1,386
|
|
|
|
14년 전
|
조회 1,728
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,255
|
|
|
|
14년 전
|
조회 1,062
|
|
|
|
14년 전
|
조회 1,783
|
|
|
|
14년 전
|
조회 1,820
|
|
|
|
14년 전
|
조회 1,001
|
|
|
|
14년 전
|
조회 1,084
|
|
|
|
14년 전
|
조회 907
|
|
|
|
14년 전
|
조회 2,547
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 839
|
|
|
|
14년 전
|
조회 1,926
|
|
|
|
14년 전
|
조회 2,191
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 1,020
|
|
|
|
14년 전
|
조회 806
|
|
|
위즈웍스
|
14년 전
|
조회 869
|
|
|
관리자
|
14년 전
|
조회 1,067
|
|
|
|
14년 전
|
조회 876
|
|
|
|
14년 전
|
조회 772
|
|
|
|
14년 전
|
조회 591
|
|
|
|
14년 전
|
조회 579
|
|
|
|
14년 전
|
조회 798
|
|
|
|
14년 전
|
조회 936
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 2,571
|
|
|
|
14년 전
|
조회 1,047
|
|
|
|
14년 전
|
조회 1,223
|
|
|
|
14년 전
|
조회 1,198
|
|
|
|
14년 전
|
조회 1,641
|
|
|
|
14년 전
|
조회 2,030
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 903
|
|
|
|
14년 전
|
조회 1,930
|
|
|
|
14년 전
|
조회 931
|
|
|
관리자
|
14년 전
|
조회 2,221
|
|
|
|
14년 전
|
조회 716
|
|
|
관리자
|
14년 전
|
조회 916
|
|
|
|
14년 전
|
조회 1,036
|
|
|
|
14년 전
|
조회 2,146
|
|
|
|
14년 전
|
조회 967
|
|
|
|
14년 전
|
조회 3,320
|
|
|
|
14년 전
|
조회 1,094
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 960
|
|
|
|
14년 전
|
조회 782
|
|
|
관리자
|
14년 전
|
조회 1,491
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 840
|
|
|
|
14년 전
|
조회 1,113
|
|
|
|
14년 전
|
조회 1,151
|
|
|
|
14년 전
|
조회 1,739
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 1,220
|
|
|
|
14년 전
|
조회 3,003
|
|
|
|
14년 전
|
조회 920
|
|
|
|
14년 전
|
조회 883
|
|
|
|
14년 전
|
조회 1,310
|
|
|
|
14년 전
|
조회 1,304
|
|
|
|
14년 전
|
조회 2,151
|
|
|
|
14년 전
|
조회 1,362
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 679
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 2,302
|
|
|
|
14년 전
|
조회 755
|
|
|
|
14년 전
|
조회 765
|
|
|
|
14년 전
|
조회 866
|
|
|
|
14년 전
|
조회 1,090
|
|
|
|
14년 전
|
조회 709
|
|
|
관리자
|
14년 전
|
조회 975
|
|
|
관리자
|
14년 전
|
조회 1,541
|
|
|
|
14년 전
|
조회 786
|
|
|
|
14년 전
|
조회 1,112
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 642
|
|
|
|
14년 전
|
조회 1,105
|
|
|
관리자
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,529
|
|
|
관리자
|
14년 전
|
조회 990
|
|
|
관리자
|
14년 전
|
조회 922
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 971
|
|
|
관리자
|
14년 전
|
조회 4,062
|
|
|
관리자
|
14년 전
|
조회 2,004
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 3,674
|
|
|
|
14년 전
|
조회 4,347
|
|
|
|
14년 전
|
조회 1,106
|
|
|
관리자
|
14년 전
|
조회 1,286
|
|
|
|
14년 전
|
조회 4,524
|
|
|
|
14년 전
|
조회 1,336
|
|
|
|
14년 전
|
조회 1,129
|
댓글 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());
});