|
|
|
12-02-26
|
조회 3,182
|
|
|
|
12-02-26
|
조회 3,496
|
|
|
|
12-02-26
|
조회 3,341
|
|
|
|
12-02-26
|
조회 3,422
|
|
|
|
12-02-26
|
조회 3,465
|
|
|
|
12-02-26
|
조회 3,323
|
|
|
|
12-02-26
|
조회 3,643
|
|
|
|
12-02-26
|
조회 3,479
|
|
|
|
12-02-26
|
조회 3,561
|
|
|
|
12-02-26
|
조회 4,041
|
|
|
|
12-02-26
|
조회 2,991
|
|
|
|
12-02-26
|
조회 5,186
|
|
|
|
12-02-25
|
조회 2,751
|
|
|
|
12-02-25
|
조회 3,231
|
|
|
|
12-02-24
|
조회 2,935
|
|
|
|
12-02-24
|
조회 3,314
|
|
|
|
12-02-24
|
조회 3,295
|
|
|
|
12-02-24
|
조회 3,607
|
|
|
|
12-02-24
|
조회 3,141
|
|
|
|
12-02-24
|
조회 3,945
|
|
|
|
12-02-24
|
조회 3,917
|
|
|
|
12-02-24
|
조회 3,513
|
|
|
亞波治
|
12-02-24
|
조회 9,370
|
|
|
|
12-02-23
|
조회 2,877
|
|
|
|
12-02-23
|
조회 3,322
|
|
|
|
12-02-23
|
조회 3,224
|
|
|
|
12-02-23
|
조회 3,168
|
|
|
|
12-02-23
|
조회 3,811
|
|
|
|
12-02-23
|
조회 2,896
|
|
|
|
12-02-23
|
조회 3,376
|
|
|
|
12-02-23
|
조회 3,054
|
|
|
|
12-02-23
|
조회 2,810
|
|
|
|
12-02-22
|
조회 3,711
|
|
|
|
12-02-22
|
조회 5,472
|
|
|
|
12-02-22
|
조회 3,032
|
|
|
|
12-02-22
|
조회 4,426
|
|
|
|
12-02-22
|
조회 3,296
|
|
|
|
12-02-22
|
조회 3,123
|
|
|
|
12-02-22
|
조회 4,033
|
|
|
|
12-02-22
|
조회 3,918
|
|
|
|
12-02-22
|
조회 2,845
|
|
|
|
12-02-22
|
조회 3,887
|
|
|
|
12-02-22
|
조회 4,347
|
|
|
|
12-02-22
|
조회 3,770
|
|
|
|
12-02-22
|
조회 2,950
|
|
|
|
12-02-22
|
조회 4,601
|
|
|
|
12-02-21
|
조회 3,162
|
|
|
|
12-02-21
|
조회 2,942
|
|
|
|
12-02-21
|
조회 2,850
|
|
|
|
12-02-21
|
조회 3,756
|
|
|
|
12-02-21
|
조회 3,996
|
|
|
|
12-02-21
|
조회 3,418
|
|
|
|
12-02-21
|
조회 2,931
|
|
|
|
12-02-20
|
조회 3,174
|
|
|
|
12-02-20
|
조회 3,810
|
|
|
|
12-02-20
|
조회 3,758
|
|
|
|
12-02-20
|
조회 3,040
|
|
|
|
12-02-20
|
조회 5,822
|
|
|
|
12-02-20
|
조회 3,618
|
|
|
|
12-02-20
|
조회 6,833
|
|
|
|
12-02-20
|
조회 3,230
|
|
|
|
12-02-20
|
조회 4,205
|
|
|
亞波治
|
12-02-19
|
조회 3,388
|
|
|
|
12-02-18
|
조회 3,123
|
|
|
|
12-02-18
|
조회 3,867
|
|
|
|
12-02-17
|
조회 3,003
|
|
|
|
12-02-17
|
조회 4,188
|
|
|
관리자
|
12-02-17
|
조회 3,073
|
|
|
亞波治
|
12-02-17
|
조회 3,639
|
|
|
|
12-02-17
|
조회 3,405
|
|
|
|
12-02-17
|
조회 6,274
|
|
|
|
12-02-17
|
조회 4,468
|
|
|
|
12-02-17
|
조회 3,095
|
|
|
|
12-02-17
|
조회 3,123
|
|
|
|
12-02-17
|
조회 3,484
|
|
|
|
12-02-16
|
조회 3,310
|
|
|
|
12-02-16
|
조회 3,380
|
|
|
|
12-02-16
|
조회 4,750
|
|
|
선택이란
|
12-02-16
|
조회 3,000
|
|
|
|
12-02-16
|
조회 5,383
|
|
|
|
12-02-16
|
조회 5,132
|
|
|
|
12-02-15
|
조회 3,679
|
|
|
|
12-02-15
|
조회 3,297
|
|
|
亞波治
|
12-02-15
|
조회 4,838
|
|
|
|
12-02-15
|
조회 3,329
|
|
|
|
12-02-15
|
조회 3,722
|
|
|
|
12-02-15
|
조회 2,797
|
|
|
亞波治
|
12-02-15
|
조회 4,070
|
|
|
|
12-02-14
|
조회 3,586
|
|
|
|
12-02-14
|
조회 3,692
|
|
|
|
12-02-14
|
조회 4,100
|
|
|
선택이란
|
12-02-14
|
조회 3,139
|
|
|
|
12-02-14
|
조회 6,224
|
|
|
|
12-02-14
|
조회 3,170
|
|
|
|
12-02-14
|
조회 4,199
|
|
|
|
12-02-13
|
조회 3,470
|
|
|
|
12-02-13
|
조회 3,088
|
|
|
관리자
|
12-02-13
|
조회 7,237
|
|
|
|
12-02-12
|
조회 2,913
|
|
|
|
12-02-12
|
조회 5,287
|
댓글 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());
});