|
|
|
12-04-26
|
조회 3,844
|
|
|
|
12-04-24
|
조회 3,234
|
|
|
|
12-04-23
|
조회 4,571
|
|
|
|
12-04-22
|
조회 3,259
|
|
|
|
12-04-19
|
조회 3,342
|
|
|
|
12-04-18
|
조회 4,396
|
|
|
|
12-04-18
|
조회 3,106
|
|
|
|
12-04-17
|
조회 3,377
|
|
|
|
12-04-17
|
조회 5,135
|
|
|
|
12-04-16
|
조회 3,558
|
|
|
|
12-04-13
|
조회 3,106
|
|
|
|
12-04-09
|
조회 3,169
|
|
|
|
12-04-04
|
조회 3,941
|
|
|
|
12-04-01
|
조회 3,217
|
|
|
|
12-03-31
|
조회 3,616
|
|
|
|
12-03-30
|
조회 3,222
|
|
|
|
12-03-30
|
조회 3,886
|
|
|
|
12-03-26
|
조회 3,501
|
|
|
|
12-03-26
|
조회 3,078
|
|
|
|
12-03-22
|
조회 3,227
|
|
|
|
12-03-21
|
조회 3,080
|
|
|
|
12-03-19
|
조회 3,491
|
|
|
|
12-03-17
|
조회 3,517
|
|
|
|
12-03-14
|
조회 3,249
|
|
|
|
12-03-10
|
조회 3,929
|
|
|
|
12-03-09
|
조회 3,517
|
|
|
|
12-03-09
|
조회 3,335
|
|
|
|
12-03-08
|
조회 3,813
|
|
|
|
12-03-08
|
조회 3,981
|
|
|
|
12-03-08
|
조회 4,073
|
|
|
|
12-03-03
|
조회 3,329
|
|
|
|
12-03-02
|
조회 4,649
|
|
|
|
12-02-28
|
조회 3,186
|
|
|
|
12-02-27
|
조회 3,003
|
|
|
|
12-02-25
|
조회 3,146
|
|
|
|
12-02-24
|
조회 3,858
|
|
|
|
12-02-23
|
조회 3,122
|
|
|
|
12-02-22
|
조회 3,637
|
|
|
|
12-02-22
|
조회 5,406
|
|
|
|
12-02-22
|
조회 3,981
|
|
|
|
12-02-22
|
조회 4,298
|
|
|
|
12-02-18
|
조회 3,792
|
|
|
|
12-02-17
|
조회 3,013
|
|
|
|
12-02-17
|
조회 3,424
|
|
|
|
12-02-14
|
조회 3,495
|
|
|
|
12-02-13
|
조회 3,372
|
|
|
|
12-02-10
|
조회 1만
|
|
|
|
12-02-08
|
조회 3,034
|
|
|
|
12-02-07
|
조회 3,374
|
|
|
|
12-02-06
|
조회 3,099
|
|
|
|
12-02-05
|
조회 3,564
|
|
|
|
12-01-31
|
조회 3,488
|
|
|
|
12-01-30
|
조회 9,673
|
|
|
|
12-01-29
|
조회 3,835
|
|
|
|
12-01-26
|
조회 3,431
|
|
|
|
12-01-25
|
조회 4,045
|
|
|
|
12-01-24
|
조회 3,437
|
|
|
|
12-01-10
|
조회 3,748
|
|
|
|
12-01-10
|
조회 4,507
|
|
|
|
12-01-09
|
조회 3,284
|
|
|
|
12-01-08
|
조회 7,143
|
|
|
jakekwak
|
12-01-08
|
조회 3,666
|
|
|
|
12-01-07
|
조회 5,193
|
|
|
jakekwak
|
12-01-04
|
조회 3,898
|
|
|
|
12-01-02
|
조회 3,124
|
|
|
|
12-01-02
|
조회 3,180
|
|
|
|
12-01-02
|
조회 3,481
|
|
|
|
12-01-01
|
조회 3,118
|
|
|
|
11-12-31
|
조회 3,424
|
|
|
|
11-12-31
|
조회 3,108
|
|
|
|
11-12-30
|
조회 3,273
|
|
|
|
11-12-30
|
조회 3,428
|
|
|
|
11-12-29
|
조회 3,638
|
|
|
|
11-12-28
|
조회 3,724
|
|
|
|
11-12-26
|
조회 3,302
|
|
|
|
11-12-23
|
조회 3,520
|
|
|
|
11-12-22
|
조회 3,061
|
|
|
|
11-12-15
|
조회 4,155
|
|
|
|
11-12-08
|
조회 3,965
|
|
|
|
11-12-05
|
조회 3,308
|
|
|
|
11-12-04
|
조회 5,723
|
|
|
|
11-12-03
|
조회 3,595
|
|
|
|
11-12-02
|
조회 3,371
|
|
|
|
11-12-01
|
조회 5,438
|
|
|
|
11-11-30
|
조회 2,920
|
|
|
|
11-11-30
|
조회 2,825
|
|
|
선택이란
|
11-11-28
|
조회 3,167
|
|
|
선택이란
|
11-11-26
|
조회 3,353
|
|
|
|
11-11-25
|
조회 3,369
|
|
|
|
11-11-24
|
조회 2,963
|
|
|
|
11-11-22
|
조회 3,059
|
|
|
|
11-11-22
|
조회 2,899
|
|
|
|
11-11-17
|
조회 2,834
|
|
|
|
11-11-11
|
조회 2,830
|
|
|
|
11-11-09
|
조회 2,886
|
|
|
|
11-11-08
|
조회 3,263
|
|
|
|
11-11-08
|
조회 2,557
|
|
|
|
11-11-04
|
조회 3,637
|
|
|
|
11-11-01
|
조회 2,944
|
|
|
|
11-10-26
|
조회 2,532
|
댓글 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());
});