|
|
|
12-04-10
|
조회 3,849
|
|
|
|
12-04-06
|
조회 5,300
|
|
|
|
12-04-06
|
조회 3,070
|
|
|
|
12-04-04
|
조회 4,165
|
|
|
|
12-04-02
|
조회 3,492
|
|
|
|
12-03-30
|
조회 3,421
|
|
|
|
12-03-29
|
조회 5,968
|
|
|
|
12-03-28
|
조회 3,321
|
|
|
|
12-03-28
|
조회 4,230
|
|
|
|
12-03-27
|
조회 4,517
|
|
|
|
12-03-23
|
조회 3,720
|
|
|
|
12-03-21
|
조회 3,445
|
|
|
|
12-03-20
|
조회 3,240
|
|
|
|
12-03-18
|
조회 3,080
|
|
|
|
12-03-15
|
조회 3,267
|
|
|
|
12-03-12
|
조회 3,308
|
|
|
|
12-03-12
|
조회 3,259
|
|
|
|
12-03-08
|
조회 3,591
|
|
|
|
12-03-03
|
조회 3,666
|
|
|
|
12-03-03
|
조회 3,218
|
|
|
|
12-02-29
|
조회 3,493
|
|
|
|
12-02-28
|
조회 3,511
|
|
|
|
12-02-28
|
조회 3,334
|
|
|
|
12-02-28
|
조회 3,447
|
|
|
|
12-02-27
|
조회 3,864
|
|
|
|
12-02-27
|
조회 3,299
|
|
|
|
12-02-24
|
조회 3,452
|
|
|
|
12-02-24
|
조회 3,350
|
|
|
|
12-02-23
|
조회 3,659
|
|
|
|
12-02-20
|
조회 3,645
|
|
|
|
12-02-20
|
조회 4,044
|
|
|
|
12-02-17
|
조회 4,029
|
|
|
|
12-02-16
|
조회 3,186
|
|
|
|
12-02-15
|
조회 3,457
|
|
|
|
12-02-15
|
조회 3,532
|
|
|
|
12-02-14
|
조회 3,500
|
|
|
|
12-02-08
|
조회 3,448
|
|
|
|
12-02-06
|
조회 3,428
|
|
|
|
12-02-06
|
조회 3,852
|
|
|
|
12-01-25
|
조회 4,099
|
|
|
|
12-01-21
|
조회 3,997
|
|
|
헌이
|
12-01-20
|
조회 6,116
|
|
|
|
12-01-15
|
조회 3,615
|
|
|
|
12-01-15
|
조회 3,572
|
|
|
|
12-01-14
|
조회 3,467
|
|
|
|
12-01-14
|
조회 3,613
|
|
|
|
12-01-14
|
조회 3,340
|
|
|
|
12-01-12
|
조회 3,970
|
|
|
|
12-01-12
|
조회 4,221
|
|
|
|
12-01-10
|
조회 3,544
|
|
|
|
12-01-10
|
조회 4,346
|
|
|
|
12-01-09
|
조회 3,707
|
|
|
|
12-01-08
|
조회 6,972
|
|
|
|
12-01-08
|
조회 3,185
|
|
|
|
12-01-07
|
조회 3,534
|
|
|
|
12-01-06
|
조회 3,545
|
|
|
|
12-01-04
|
조회 3,686
|
|
|
|
12-01-03
|
조회 3,537
|
|
|
|
12-01-02
|
조회 3,938
|
|
|
|
12-01-02
|
조회 3,133
|
|
|
|
12-01-01
|
조회 4,066
|
|
|
|
12-01-01
|
조회 3,409
|
|
|
|
11-12-31
|
조회 3,657
|
|
|
|
11-12-31
|
조회 3,766
|
|
|
|
11-12-31
|
조회 3,592
|
|
|
|
11-12-30
|
조회 3,826
|
|
|
|
11-12-30
|
조회 5,011
|
|
|
|
11-12-30
|
조회 4,119
|
|
|
|
11-12-30
|
조회 4,277
|
|
|
|
11-12-30
|
조회 3,748
|
|
|
|
11-12-30
|
조회 3,468
|
|
|
|
11-12-30
|
조회 3,478
|
|
|
|
11-12-29
|
조회 3,200
|
|
|
|
11-12-22
|
조회 3,423
|
|
|
|
11-12-21
|
조회 3,369
|
|
|
|
11-12-20
|
조회 3,625
|
|
|
|
11-12-15
|
조회 5,415
|
|
|
관리자
|
11-12-15
|
조회 4,414
|
|
|
|
11-12-14
|
조회 5,437
|
|
|
|
11-12-12
|
조회 3,634
|
|
|
|
11-12-03
|
조회 3,398
|
|
|
|
11-11-26
|
조회 3,493
|
|
|
|
11-11-19
|
조회 3,695
|
|
|
|
11-11-01
|
조회 3,049
|
|
|
|
11-10-23
|
조회 2,693
|
|
|
관리자
|
11-10-21
|
조회 2,706
|
|
|
|
11-10-15
|
조회 3,131
|
|
|
|
11-10-15
|
조회 2,867
|
|
|
|
11-10-15
|
조회 3,538
|
|
|
|
11-10-15
|
조회 2,768
|
|
|
|
11-10-14
|
조회 2,801
|
|
|
|
11-10-13
|
조회 2,575
|
|
|
|
11-10-11
|
조회 2,822
|
|
|
|
11-10-10
|
조회 2,647
|
|
|
|
11-09-30
|
조회 3,524
|
|
|
|
11-09-30
|
조회 2,959
|
|
|
|
11-09-29
|
조회 4,795
|
|
|
|
11-09-29
|
조회 2,621
|
|
|
관리자
|
11-09-23
|
조회 2,658
|
|
|
관리자
|
11-09-16
|
조회 2,981
|
댓글 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());
});