|
|
|
11-08-06
|
조회 2,963
|
|
|
|
11-08-06
|
조회 2,646
|
|
|
|
11-08-06
|
조회 3,351
|
|
|
|
11-08-05
|
조회 3,020
|
|
|
|
11-08-05
|
조회 2,883
|
|
|
|
11-08-05
|
조회 3,222
|
|
|
|
11-08-05
|
조회 3,160
|
|
|
|
11-08-05
|
조회 2,635
|
|
|
|
11-08-05
|
조회 2,544
|
|
|
|
11-08-05
|
조회 2,331
|
|
|
|
11-08-05
|
조회 2,532
|
|
|
|
11-08-05
|
조회 3,384
|
|
|
|
11-08-05
|
조회 4,013
|
|
|
|
11-08-04
|
조회 4,057
|
|
|
|
11-08-04
|
조회 3,583
|
|
|
똥싼너구리
|
11-08-04
|
조회 3,069
|
|
|
|
11-08-04
|
조회 3,083
|
|
|
|
11-08-04
|
조회 2,942
|
|
|
|
11-08-04
|
조회 3,200
|
|
|
|
11-08-04
|
조회 2,186
|
|
|
|
11-08-04
|
조회 3,075
|
|
|
|
11-08-04
|
조회 2,221
|
|
|
|
11-08-04
|
조회 2,720
|
|
|
관리자
|
11-08-04
|
조회 2,494
|
|
|
|
11-08-04
|
조회 3,692
|
|
|
|
11-08-03
|
조회 2,412
|
|
|
|
11-08-03
|
조회 4,209
|
|
|
|
11-08-03
|
조회 2,744
|
|
|
선택이란
|
11-08-03
|
조회 2,536
|
|
|
|
11-08-03
|
조회 4,609
|
|
|
|
11-08-03
|
조회 2,244
|
|
|
관리자
|
11-08-03
|
조회 2,617
|
|
|
|
11-08-03
|
조회 2,067
|
|
|
|
11-08-02
|
조회 2,583
|
|
|
|
11-08-02
|
조회 2,156
|
|
|
관리자
|
11-08-02
|
조회 2,916
|
|
|
|
11-08-02
|
조회 2,257
|
|
|
|
11-08-02
|
조회 2,767
|
|
|
관리자
|
11-08-02
|
조회 2,310
|
|
|
|
11-08-02
|
조회 2,221
|
|
|
|
11-08-01
|
조회 2,136
|
|
|
|
11-08-01
|
조회 3,045
|
|
|
똥싼너구리
|
11-08-01
|
조회 2,355
|
|
|
|
11-08-01
|
조회 2,207
|
|
|
|
11-08-01
|
조회 2,230
|
|
|
|
11-07-30
|
조회 2,966
|
|
|
|
11-07-30
|
조회 2,934
|
|
|
|
11-07-29
|
조회 2,125
|
|
|
|
11-07-29
|
조회 4,070
|
|
|
|
11-07-28
|
조회 2,008
|
|
|
|
11-07-28
|
조회 2,239
|
|
|
|
11-07-28
|
조회 4,833
|
|
|
|
11-07-27
|
조회 2,277
|
|
|
|
11-07-27
|
조회 2,710
|
|
|
|
11-07-27
|
조회 3,000
|
|
|
|
11-07-26
|
조회 2,140
|
|
|
|
11-07-26
|
조회 2,263
|
|
|
|
11-07-26
|
조회 2,324
|
|
|
|
11-07-26
|
조회 2,670
|
|
|
|
11-07-26
|
조회 2,250
|
|
|
|
11-07-26
|
조회 2,558
|
|
|
|
11-07-26
|
조회 4,504
|
|
|
|
11-07-26
|
조회 2,901
|
|
|
|
11-07-26
|
조회 2,316
|
|
|
|
11-07-26
|
조회 3,122
|
|
|
|
11-07-25
|
조회 2,416
|
|
|
|
11-07-25
|
조회 2,000
|
|
|
|
11-07-25
|
조회 3,897
|
|
|
|
11-07-25
|
조회 2,300
|
|
|
|
11-07-25
|
조회 2,405
|
|
|
|
11-07-23
|
조회 2,639
|
|
|
|
11-07-23
|
조회 2,586
|
|
|
|
11-07-23
|
조회 2,743
|
|
|
|
11-07-22
|
조회 2,151
|
|
|
|
11-07-22
|
조회 4,084
|
|
|
|
11-07-22
|
조회 2,419
|
|
|
|
11-07-21
|
조회 3,060
|
|
|
|
11-07-21
|
조회 2,598
|
|
|
|
11-07-21
|
조회 2,703
|
|
|
|
11-07-21
|
조회 2,364
|
|
|
|
11-07-20
|
조회 2,601
|
|
|
|
11-07-20
|
조회 2,170
|
|
|
|
11-07-20
|
조회 2,222
|
|
|
|
11-07-20
|
조회 2,977
|
|
|
|
11-07-20
|
조회 2,801
|
|
|
|
11-07-20
|
조회 2,589
|
|
|
|
11-07-20
|
조회 2,640
|
|
|
|
11-07-20
|
조회 3,543
|
|
|
|
11-07-20
|
조회 3,227
|
|
|
|
11-07-19
|
조회 2,163
|
|
|
|
11-07-19
|
조회 2,991
|
|
|
|
11-07-19
|
조회 2,862
|
|
|
|
11-07-19
|
조회 2,870
|
|
|
선택이란
|
11-07-18
|
조회 2,398
|
|
|
|
11-07-18
|
조회 2,386
|
|
|
|
11-07-18
|
조회 2,354
|
|
|
|
11-07-18
|
조회 2,346
|
|
|
|
11-07-18
|
조회 3,022
|
|
|
|
11-07-18
|
조회 2,395
|
|
|
|
11-07-17
|
조회 2,636
|
댓글 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());
});