|
|
|
10-12-01
|
조회 2,153
|
|
|
|
10-12-01
|
조회 2,100
|
|
|
|
10-12-01
|
조회 2,284
|
|
|
|
10-12-01
|
조회 2,005
|
|
|
|
10-12-01
|
조회 2,133
|
|
|
|
10-12-01
|
조회 2,140
|
|
|
|
10-11-30
|
조회 2,558
|
|
|
|
10-11-30
|
조회 2,020
|
|
|
|
10-11-30
|
조회 2,217
|
|
|
|
10-11-30
|
조회 2,225
|
|
|
|
10-11-30
|
조회 2,737
|
|
|
|
10-11-30
|
조회 2,146
|
|
|
|
10-11-30
|
조회 2,357
|
|
|
|
10-11-29
|
조회 2,968
|
|
|
|
10-11-29
|
조회 2,201
|
|
|
|
10-11-29
|
조회 2,094
|
|
|
|
10-11-29
|
조회 1,895
|
|
|
|
10-11-29
|
조회 2,033
|
|
|
|
10-11-29
|
조회 1,985
|
|
|
|
10-11-29
|
조회 3,405
|
|
|
|
10-11-29
|
조회 2,237
|
|
|
|
10-11-28
|
조회 2,375
|
|
|
|
10-11-28
|
조회 2,168
|
|
|
|
10-11-28
|
조회 2,861
|
|
|
|
10-11-28
|
조회 2,701
|
|
|
|
10-11-28
|
조회 2,335
|
|
|
|
10-11-27
|
조회 2,109
|
|
|
|
10-11-27
|
조회 2,519
|
|
|
|
10-11-27
|
조회 1,972
|
|
|
|
10-11-27
|
조회 2,098
|
|
|
|
10-11-27
|
조회 2,131
|
|
|
|
10-11-27
|
조회 2,076
|
|
|
|
10-11-27
|
조회 2,057
|
|
|
|
10-11-27
|
조회 2,354
|
|
|
|
10-11-26
|
조회 2,151
|
|
|
|
10-11-26
|
조회 2,157
|
|
|
|
10-11-26
|
조회 2,186
|
|
|
|
10-11-26
|
조회 2,273
|
|
|
|
10-11-26
|
조회 3,971
|
|
|
|
10-11-26
|
조회 2,220
|
|
|
|
10-11-26
|
조회 2,089
|
|
|
|
10-11-26
|
조회 2,109
|
|
|
|
10-11-26
|
조회 2,068
|
|
|
|
10-11-25
|
조회 2,291
|
|
|
|
10-11-25
|
조회 2,062
|
|
|
|
10-11-25
|
조회 2,395
|
|
|
|
10-11-25
|
조회 2,117
|
|
|
|
10-11-25
|
조회 2,172
|
|
|
|
10-11-25
|
조회 2,595
|
|
|
|
10-11-25
|
조회 2,046
|
|
|
|
10-11-25
|
조회 2,114
|
|
|
|
10-11-25
|
조회 2,041
|
|
|
|
10-11-25
|
조회 2,272
|
|
|
|
10-11-25
|
조회 1,976
|
|
|
|
10-11-25
|
조회 2,620
|
|
|
|
10-11-25
|
조회 2,217
|
|
|
|
10-11-24
|
조회 2,127
|
|
|
관리자
|
10-11-24
|
조회 2,467
|
|
|
|
10-11-24
|
조회 2,112
|
|
|
|
10-11-24
|
조회 2,134
|
|
|
|
10-11-24
|
조회 2,082
|
|
|
|
10-11-24
|
조회 2,198
|
|
|
|
10-11-24
|
조회 2,086
|
|
|
|
10-11-23
|
조회 2,250
|
|
|
|
10-11-23
|
조회 2,165
|
|
|
|
10-11-23
|
조회 2,505
|
|
|
|
10-11-23
|
조회 2,058
|
|
|
|
10-11-23
|
조회 2,169
|
|
|
|
10-11-23
|
조회 2,226
|
|
|
|
10-11-23
|
조회 2,497
|
|
|
|
10-11-23
|
조회 2,995
|
|
|
|
10-11-23
|
조회 2,183
|
|
|
|
10-11-23
|
조회 2,295
|
|
|
|
10-11-23
|
조회 2,301
|
|
|
|
10-11-23
|
조회 2,407
|
|
|
|
10-11-23
|
조회 2,243
|
|
|
|
10-11-22
|
조회 2,471
|
|
|
|
10-11-22
|
조회 2,212
|
|
|
|
10-11-22
|
조회 2,371
|
|
|
|
10-11-22
|
조회 2,198
|
|
|
|
10-11-22
|
조회 5,337
|
|
|
|
10-11-22
|
조회 8,227
|
|
|
|
10-11-22
|
조회 2,323
|
|
|
|
10-11-22
|
조회 2,087
|
|
|
|
10-11-21
|
조회 2,615
|
|
|
|
10-11-21
|
조회 2,318
|
|
|
|
10-11-20
|
조회 2,413
|
|
|
|
10-11-20
|
조회 2,181
|
|
|
|
10-11-20
|
조회 2,095
|
|
|
|
10-11-19
|
조회 2,557
|
|
|
|
10-11-19
|
조회 2,176
|
|
|
|
10-11-19
|
조회 2,899
|
|
|
|
10-11-18
|
조회 2,617
|
|
|
|
10-11-18
|
조회 2,251
|
|
|
|
10-11-18
|
조회 2,224
|
|
|
|
10-11-18
|
조회 2,073
|
|
|
|
10-11-18
|
조회 2,479
|
|
|
|
10-11-17
|
조회 2,201
|
|
|
|
10-11-17
|
조회 4,338
|
|
|
|
10-11-17
|
조회 2,574
|
댓글 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());
});