|
|
|
14년 전
|
조회 1,309
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 1만
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 981
|
|
|
|
14년 전
|
조회 1,703
|
|
|
|
14년 전
|
조회 1,743
|
|
|
|
14년 전
|
조회 919
|
|
|
|
14년 전
|
조회 1,016
|
|
|
|
14년 전
|
조회 839
|
|
|
|
14년 전
|
조회 2,464
|
|
|
|
14년 전
|
조회 625
|
|
|
|
14년 전
|
조회 770
|
|
|
|
14년 전
|
조회 1,842
|
|
|
|
14년 전
|
조회 2,110
|
|
|
|
14년 전
|
조회 567
|
|
|
|
14년 전
|
조회 951
|
|
|
|
14년 전
|
조회 726
|
|
|
위즈웍스
|
14년 전
|
조회 783
|
|
|
관리자
|
14년 전
|
조회 977
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 523
|
|
|
|
14년 전
|
조회 498
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 869
|
|
|
|
14년 전
|
조회 696
|
|
|
|
14년 전
|
조회 680
|
|
|
|
14년 전
|
조회 2,492
|
|
|
|
14년 전
|
조회 987
|
|
|
|
14년 전
|
조회 1,134
|
|
|
|
14년 전
|
조회 1,116
|
|
|
|
14년 전
|
조회 1,567
|
|
|
|
14년 전
|
조회 1,960
|
|
|
|
14년 전
|
조회 656
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 1,852
|
|
|
|
14년 전
|
조회 845
|
|
|
관리자
|
14년 전
|
조회 2,148
|
|
|
|
14년 전
|
조회 633
|
|
|
관리자
|
14년 전
|
조회 843
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 2,066
|
|
|
|
14년 전
|
조회 885
|
|
|
|
14년 전
|
조회 3,239
|
|
|
|
14년 전
|
조회 1,018
|
|
|
|
14년 전
|
조회 541
|
|
|
|
14년 전
|
조회 881
|
|
|
|
14년 전
|
조회 730
|
|
|
관리자
|
14년 전
|
조회 1,412
|
|
|
|
14년 전
|
조회 585
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 725
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 1,038
|
|
|
|
14년 전
|
조회 1,082
|
|
|
|
14년 전
|
조회 1,655
|
|
|
|
14년 전
|
조회 686
|
|
|
|
14년 전
|
조회 1,135
|
|
|
|
14년 전
|
조회 2,911
|
|
|
|
14년 전
|
조회 846
|
|
|
|
14년 전
|
조회 804
|
|
|
|
14년 전
|
조회 1,239
|
|
|
|
14년 전
|
조회 1,221
|
|
|
|
14년 전
|
조회 2,066
|
|
|
|
14년 전
|
조회 1,280
|
|
|
|
14년 전
|
조회 650
|
|
|
|
14년 전
|
조회 592
|
|
|
|
14년 전
|
조회 500
|
|
|
|
14년 전
|
조회 712
|
|
|
|
14년 전
|
조회 2,227
|
|
|
|
14년 전
|
조회 667
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 779
|
|
|
|
14년 전
|
조회 989
|
|
|
|
14년 전
|
조회 623
|
|
|
관리자
|
14년 전
|
조회 899
|
|
|
관리자
|
14년 전
|
조회 1,468
|
|
|
|
14년 전
|
조회 704
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 489
|
|
|
|
14년 전
|
조회 551
|
|
|
|
14년 전
|
조회 1,033
|
|
|
관리자
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 1,448
|
|
|
관리자
|
14년 전
|
조회 918
|
|
|
관리자
|
14년 전
|
조회 851
|
|
|
|
14년 전
|
조회 1,369
|
|
|
|
14년 전
|
조회 895
|
|
|
관리자
|
14년 전
|
조회 3,987
|
|
|
관리자
|
14년 전
|
조회 1,922
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 646
|
|
|
|
14년 전
|
조회 3,598
|
|
|
|
14년 전
|
조회 4,278
|
|
|
|
14년 전
|
조회 1,019
|
|
|
관리자
|
14년 전
|
조회 1,205
|
|
|
|
14년 전
|
조회 4,443
|
|
|
|
14년 전
|
조회 1,246
|
|
|
|
14년 전
|
조회 1,044
|
댓글 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());
});