|
|
|
11-03-03
|
조회 2,557
|
|
|
|
11-03-03
|
조회 2,479
|
|
|
|
11-03-03
|
조회 2,586
|
|
|
|
11-03-02
|
조회 1,951
|
|
|
|
11-03-02
|
조회 2,673
|
|
|
|
11-03-02
|
조회 2,413
|
|
|
|
11-03-02
|
조회 2,638
|
|
|
|
11-03-02
|
조회 2,811
|
|
|
|
11-03-02
|
조회 2,581
|
|
|
|
11-03-02
|
조회 2,641
|
|
|
|
11-03-02
|
조회 2,346
|
|
|
|
11-03-02
|
조회 3,202
|
|
|
|
11-03-02
|
조회 2,283
|
|
|
|
11-03-02
|
조회 2,675
|
|
|
|
11-03-02
|
조회 2,774
|
|
|
|
11-03-02
|
조회 2,947
|
|
|
|
11-03-02
|
조회 2,099
|
|
|
|
11-03-01
|
조회 2,861
|
|
|
|
11-03-01
|
조회 2,844
|
|
|
|
11-03-01
|
조회 2,410
|
|
|
|
11-03-01
|
조회 3,427
|
|
|
|
11-03-01
|
조회 2,607
|
|
|
|
11-03-01
|
조회 2,511
|
|
|
|
11-02-28
|
조회 2,687
|
|
|
|
11-02-28
|
조회 2,479
|
|
|
|
11-02-28
|
조회 2,790
|
|
|
|
11-02-27
|
조회 2,679
|
|
|
|
11-02-27
|
조회 2,265
|
|
|
|
11-02-27
|
조회 3,034
|
|
|
|
11-02-27
|
조회 3,080
|
|
|
|
11-02-27
|
조회 1,951
|
|
|
|
11-02-26
|
조회 1,973
|
|
|
관리자
|
11-02-26
|
조회 4,488
|
|
|
|
11-02-26
|
조회 3,440
|
|
|
|
11-02-25
|
조회 2,496
|
|
|
|
11-02-25
|
조회 2,046
|
|
|
|
11-02-25
|
조회 2,023
|
|
|
|
11-02-25
|
조회 2,514
|
|
|
|
11-02-25
|
조회 2,765
|
|
|
|
11-02-24
|
조회 2,692
|
|
|
|
11-02-24
|
조회 2,508
|
|
|
|
11-02-24
|
조회 2,677
|
|
|
|
11-02-24
|
조회 2,422
|
|
|
|
11-02-24
|
조회 2,972
|
|
|
|
11-02-24
|
조회 2,013
|
|
|
|
11-02-23
|
조회 2,388
|
|
|
|
11-02-23
|
조회 1,990
|
|
|
|
11-02-23
|
조회 2,443
|
|
|
|
11-02-23
|
조회 2,113
|
|
|
관리자
|
11-02-23
|
조회 2,269
|
|
|
|
11-02-22
|
조회 2,006
|
|
|
|
11-02-22
|
조회 2,247
|
|
|
|
11-02-22
|
조회 2,507
|
|
|
|
11-02-22
|
조회 4,113
|
|
|
|
11-02-21
|
조회 2,357
|
|
|
|
11-02-21
|
조회 5,729
|
|
|
|
11-02-19
|
조회 3,235
|
|
|
|
11-02-19
|
조회 2,585
|
|
|
|
11-02-19
|
조회 2,854
|
|
|
|
11-02-18
|
조회 2,626
|
|
|
|
11-02-18
|
조회 3,106
|
|
|
|
11-02-18
|
조회 2,911
|
|
|
|
11-02-17
|
조회 2,250
|
|
|
|
11-02-17
|
조회 2,871
|
|
|
|
11-02-17
|
조회 2,176
|
|
|
|
11-02-16
|
조회 2,240
|
|
|
|
11-02-15
|
조회 8,257
|
|
|
관리자
|
11-02-15
|
조회 3,688
|
|
|
|
11-02-15
|
조회 3,413
|
|
|
|
11-02-15
|
조회 2,256
|
|
|
|
11-02-15
|
조회 2,596
|
|
|
|
11-02-15
|
조회 2,418
|
|
|
|
11-02-15
|
조회 3,163
|
|
|
|
11-02-14
|
조회 2,826
|
|
|
|
11-02-14
|
조회 2,432
|
|
|
|
11-02-14
|
조회 2,217
|
|
|
亞波治
|
11-02-14
|
조회 5,797
|
|
|
|
11-02-14
|
조회 4,194
|
|
|
|
11-02-14
|
조회 2,380
|
|
|
|
11-02-14
|
조회 2,048
|
|
|
|
11-02-13
|
조회 2,754
|
|
|
관리자
|
11-02-12
|
조회 3,060
|
|
|
|
11-02-11
|
조회 2,807
|
|
|
|
11-02-11
|
조회 2,137
|
|
|
|
11-02-11
|
조회 3,128
|
|
|
|
11-02-11
|
조회 4,415
|
|
|
|
11-02-10
|
조회 2,589
|
|
|
|
11-02-10
|
조회 2,630
|
|
|
|
11-02-09
|
조회 2,451
|
|
|
|
11-02-08
|
조회 2,183
|
|
|
|
11-02-08
|
조회 2,039
|
|
|
|
11-02-08
|
조회 2,294
|
|
|
관리자
|
11-02-08
|
조회 3,433
|
|
|
|
11-02-07
|
조회 2,473
|
|
|
|
11-02-07
|
조회 2,953
|
|
|
|
11-02-07
|
조회 4,973
|
|
|
|
11-02-07
|
조회 2,682
|
|
|
|
11-02-06
|
조회 2,879
|
|
|
|
11-02-05
|
조회 2,581
|
|
|
|
11-02-05
|
조회 2,543
|
댓글 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());
});