|
|
|
11-09-19
|
조회 2,597
|
|
|
|
11-09-19
|
조회 2,520
|
|
|
|
11-09-19
|
조회 5,538
|
|
|
|
11-09-19
|
조회 6,175
|
|
|
|
11-09-16
|
조회 2,887
|
|
|
관리자
|
11-09-16
|
조회 3,155
|
|
|
|
11-09-16
|
조회 6,351
|
|
|
|
11-09-15
|
조회 3,117
|
|
|
|
11-09-15
|
조회 2,880
|
|
|
|
11-09-15
|
조회 2,549
|
|
|
|
11-09-15
|
조회 2,544
|
|
|
|
11-09-15
|
조회 2,748
|
|
|
|
11-09-15
|
조회 2,705
|
|
|
|
11-09-15
|
조회 2,823
|
|
|
|
11-09-14
|
조회 2,735
|
|
|
|
11-09-14
|
조회 3,291
|
|
|
|
11-09-14
|
조회 2,403
|
|
|
|
11-09-14
|
조회 2,331
|
|
|
|
11-09-14
|
조회 2,316
|
|
|
|
11-09-13
|
조회 2,499
|
|
|
복스리
|
11-09-10
|
조회 2,968
|
|
|
|
11-09-10
|
조회 2,586
|
|
|
|
11-09-09
|
조회 3,170
|
|
|
|
11-09-09
|
조회 3,037
|
|
|
|
11-09-09
|
조회 3,131
|
|
|
|
11-09-09
|
조회 3,164
|
|
|
|
11-09-08
|
조회 3,849
|
|
|
|
11-09-08
|
조회 5,045
|
|
|
|
11-09-08
|
조회 3,441
|
|
|
관리자
|
11-09-08
|
조회 4,371
|
|
|
|
11-09-08
|
조회 3,875
|
|
|
|
11-09-08
|
조회 3,679
|
|
|
|
11-09-08
|
조회 2,773
|
|
|
|
11-09-08
|
조회 2,345
|
|
|
|
11-09-08
|
조회 2,750
|
|
|
|
11-09-08
|
조회 2,872
|
|
|
|
11-09-07
|
조회 3,534
|
|
|
관리자
|
11-09-07
|
조회 3,594
|
|
|
|
11-09-07
|
조회 3,015
|
|
|
|
11-09-07
|
조회 2,716
|
|
|
|
11-09-07
|
조회 2,809
|
|
|
|
11-09-07
|
조회 2,835
|
|
|
|
11-09-07
|
조회 3,069
|
|
|
|
11-09-07
|
조회 2,337
|
|
|
|
11-09-07
|
조회 2,434
|
|
|
|
11-09-07
|
조회 2,598
|
|
|
|
11-09-07
|
조회 3,538
|
|
|
|
11-09-07
|
조회 2,809
|
|
|
관리자
|
11-09-06
|
조회 2,634
|
|
|
관리자
|
11-09-06
|
조회 2,923
|
|
|
|
11-09-06
|
조회 2,485
|
|
|
|
11-09-05
|
조회 2,698
|
|
|
|
11-09-05
|
조회 2,645
|
|
|
|
11-09-05
|
조회 2,926
|
|
|
|
11-09-05
|
조회 2,441
|
|
|
|
11-09-04
|
조회 2,411
|
|
|
|
11-09-04
|
조회 2,374
|
|
|
|
11-09-03
|
조회 2,549
|
|
|
|
11-09-03
|
조회 2,708
|
|
|
|
11-09-02
|
조회 3,428
|
|
|
|
11-09-02
|
조회 2,805
|
|
|
|
11-09-02
|
조회 2,673
|
|
|
|
11-09-02
|
조회 3,582
|
|
|
관리자
|
11-09-02
|
조회 2,612
|
|
|
|
11-09-02
|
조회 2,501
|
|
|
|
11-09-02
|
조회 2,500
|
|
|
|
11-09-01
|
조회 2,700
|
|
|
|
11-09-01
|
조회 2,847
|
|
|
|
11-09-01
|
조회 2,722
|
|
|
|
11-09-01
|
조회 2,730
|
|
|
|
11-09-01
|
조회 2,874
|
|
|
|
11-09-01
|
조회 2,736
|
|
|
|
11-09-01
|
조회 4,173
|
|
|
|
11-09-01
|
조회 3,777
|
|
|
|
11-09-01
|
조회 4,443
|
|
|
|
11-08-31
|
조회 2,328
|
|
|
|
11-08-31
|
조회 2,631
|
|
|
관리자
|
11-08-31
|
조회 2,915
|
|
|
|
11-08-31
|
조회 2,633
|
|
|
|
11-08-31
|
조회 2,490
|
|
|
관리자
|
11-08-31
|
조회 3,300
|
|
|
관리자
|
11-08-30
|
조회 3,037
|
|
|
|
11-08-30
|
조회 4,267
|
|
|
|
11-08-29
|
조회 3,027
|
|
|
선택이란
|
11-08-29
|
조회 2,611
|
|
|
|
11-08-29
|
조회 5,245
|
|
|
|
11-08-29
|
조회 3,373
|
|
|
|
11-08-29
|
조회 2,766
|
|
|
|
11-08-29
|
조회 3,117
|
|
|
|
11-08-28
|
조회 2,512
|
|
|
|
11-08-28
|
조회 3,662
|
|
|
|
11-08-28
|
조회 2,624
|
|
|
복스리
|
11-08-28
|
조회 2,988
|
|
|
|
11-08-26
|
조회 2,520
|
|
|
|
11-08-26
|
조회 3,027
|
|
|
|
11-08-26
|
조회 3,263
|
|
|
|
11-08-26
|
조회 2,760
|
|
|
선택이란
|
11-08-25
|
조회 2,596
|
|
|
|
11-08-25
|
조회 2,908
|
|
|
|
11-08-25
|
조회 2,630
|
댓글 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());
});