|
|
|
12-02-11
|
조회 3,189
|
|
|
|
12-02-11
|
조회 3,080
|
|
|
|
12-02-11
|
조회 3,517
|
|
|
|
12-02-10
|
조회 1만
|
|
|
|
12-02-10
|
조회 3,673
|
|
|
|
12-02-10
|
조회 4,637
|
|
|
|
12-02-09
|
조회 4,004
|
|
|
|
12-02-09
|
조회 3,563
|
|
|
|
12-02-09
|
조회 6,503
|
|
|
|
12-02-09
|
조회 3,216
|
|
|
|
12-02-08
|
조회 3,657
|
|
|
|
12-02-08
|
조회 3,058
|
|
|
|
12-02-08
|
조회 3,118
|
|
|
|
12-02-08
|
조회 4,070
|
|
|
|
12-02-08
|
조회 4,780
|
|
|
|
12-02-08
|
조회 3,115
|
|
|
|
12-02-07
|
조회 3,443
|
|
|
|
12-02-07
|
조회 3,378
|
|
|
|
12-02-07
|
조회 3,385
|
|
|
|
12-02-07
|
조회 2,688
|
|
|
|
12-02-07
|
조회 3,433
|
|
|
|
12-02-07
|
조회 2,979
|
|
|
|
12-02-06
|
조회 3,156
|
|
|
|
12-02-06
|
조회 3,049
|
|
|
|
12-02-06
|
조회 3,612
|
|
|
|
12-02-06
|
조회 4,051
|
|
|
|
12-02-06
|
조회 3,397
|
|
|
선택이란
|
12-02-06
|
조회 1.2만
|
|
|
|
12-02-06
|
조회 4,327
|
|
|
관리자
|
12-02-06
|
조회 5,774
|
|
|
|
12-02-05
|
조회 2,856
|
|
|
|
12-02-05
|
조회 3,633
|
|
|
|
12-02-05
|
조회 3,039
|
|
|
|
12-02-04
|
조회 2,958
|
|
|
|
12-02-04
|
조회 2,952
|
|
|
|
12-02-04
|
조회 6,784
|
|
|
관리자
|
12-02-03
|
조회 3,956
|
|
|
관리자
|
12-02-03
|
조회 4,346
|
|
|
|
12-02-03
|
조회 2,849
|
|
|
|
12-02-03
|
조회 3,391
|
|
|
관리자
|
12-02-03
|
조회 3,981
|
|
|
|
12-02-02
|
조회 3,014
|
|
|
|
12-02-02
|
조회 3,787
|
|
|
|
12-02-02
|
조회 3,821
|
|
|
관리자
|
12-02-02
|
조회 5,486
|
|
|
|
12-02-02
|
조회 3,441
|
|
|
|
12-02-02
|
조회 4,703
|
|
|
관리자
|
12-02-02
|
조회 3,555
|
|
|
|
12-02-01
|
조회 3,388
|
|
|
|
12-02-01
|
조회 3,629
|
|
|
|
12-02-01
|
조회 4,055
|
|
|
|
12-02-01
|
조회 3,345
|
|
|
|
12-02-01
|
조회 2,892
|
|
|
|
12-01-31
|
조회 3,317
|
|
|
|
12-01-31
|
조회 3,564
|
|
|
|
12-01-31
|
조회 2,971
|
|
|
|
12-01-30
|
조회 9,738
|
|
|
|
12-01-30
|
조회 8,905
|
|
|
|
12-01-30
|
조회 2,881
|
|
|
|
12-01-30
|
조회 3,298
|
|
|
|
12-01-30
|
조회 3,386
|
|
|
|
12-01-30
|
조회 2,894
|
|
|
|
12-01-30
|
조회 3,061
|
|
|
똥싼너구리
|
12-01-29
|
조회 3,386
|
|
|
|
12-01-29
|
조회 3,251
|
|
|
亞波治
|
12-01-29
|
조회 4,714
|
|
|
아눈아키
|
12-01-29
|
조회 2,893
|
|
|
|
12-01-29
|
조회 3,603
|
|
|
|
12-01-29
|
조회 3,894
|
|
|
|
12-01-28
|
조회 3,516
|
|
|
|
12-01-28
|
조회 2,753
|
|
|
복스리
|
12-01-28
|
조회 3,565
|
|
|
|
12-01-27
|
조회 2,955
|
|
|
|
12-01-27
|
조회 2,867
|
|
|
|
12-01-27
|
조회 2,912
|
|
|
|
12-01-27
|
조회 3,360
|
|
|
|
12-01-26
|
조회 6,652
|
|
|
|
12-01-26
|
조회 3,714
|
|
|
|
12-01-26
|
조회 3,497
|
|
|
|
12-01-26
|
조회 3,029
|
|
|
아눈아키
|
12-01-26
|
조회 3,127
|
|
|
|
12-01-25
|
조회 3,200
|
|
|
|
12-01-25
|
조회 3,006
|
|
|
|
12-01-25
|
조회 2,876
|
|
|
|
12-01-25
|
조회 2,683
|
|
|
|
12-01-25
|
조회 2,553
|
|
|
|
12-01-25
|
조회 4,283
|
|
|
선택이란
|
12-01-25
|
조회 4,153
|
|
|
|
12-01-25
|
조회 2,757
|
|
|
|
12-01-25
|
조회 4,116
|
|
|
|
12-01-25
|
조회 3,591
|
|
|
|
12-01-24
|
조회 3,305
|
|
|
|
12-01-24
|
조회 3,509
|
|
|
|
12-01-24
|
조회 3,724
|
|
|
亞波治
|
12-01-24
|
조회 4,437
|
|
|
|
12-01-22
|
조회 3,523
|
|
|
|
12-01-22
|
조회 2,869
|
|
|
|
12-01-22
|
조회 3,276
|
|
|
|
12-01-22
|
조회 3,774
|
|
|
|
12-01-21
|
조회 3,124
|
댓글 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());
});