|
|
|
14년 전
|
조회 1,877
|
|
|
|
14년 전
|
조회 2,216
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,750
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 2,270
|
|
|
|
14년 전
|
조회 2,333
|
|
|
|
14년 전
|
조회 1,499
|
|
|
|
14년 전
|
조회 1,586
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 3,071
|
|
|
|
14년 전
|
조회 1,199
|
|
|
|
14년 전
|
조회 1,338
|
|
|
|
14년 전
|
조회 2,399
|
|
|
|
14년 전
|
조회 2,688
|
|
|
|
14년 전
|
조회 1,138
|
|
|
|
14년 전
|
조회 1,536
|
|
|
|
14년 전
|
조회 1,299
|
|
|
위즈웍스
|
14년 전
|
조회 1,369
|
|
|
관리자
|
14년 전
|
조회 1,555
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 1,274
|
|
|
|
14년 전
|
조회 1,069
|
|
|
|
14년 전
|
조회 1,086
|
|
|
|
14년 전
|
조회 1,334
|
|
|
|
14년 전
|
조회 1,428
|
|
|
|
14년 전
|
조회 1,251
|
|
|
|
14년 전
|
조회 1,275
|
|
|
|
14년 전
|
조회 3,061
|
|
|
|
14년 전
|
조회 1,566
|
|
|
|
14년 전
|
조회 1,743
|
|
|
|
14년 전
|
조회 1,681
|
|
|
|
14년 전
|
조회 2,143
|
|
|
|
14년 전
|
조회 2,571
|
|
|
|
14년 전
|
조회 1,259
|
|
|
|
14년 전
|
조회 1,384
|
|
|
|
14년 전
|
조회 2,391
|
|
|
|
14년 전
|
조회 1,406
|
|
|
관리자
|
14년 전
|
조회 2,719
|
|
|
|
14년 전
|
조회 1,195
|
|
|
관리자
|
14년 전
|
조회 1,417
|
|
|
|
14년 전
|
조회 1,533
|
|
|
|
14년 전
|
조회 2,609
|
|
|
|
14년 전
|
조회 1,447
|
|
|
|
14년 전
|
조회 3,824
|
|
|
|
14년 전
|
조회 1,552
|
|
|
|
14년 전
|
조회 1,104
|
|
|
|
14년 전
|
조회 1,419
|
|
|
|
14년 전
|
조회 1,280
|
|
|
관리자
|
14년 전
|
조회 2,011
|
|
|
|
14년 전
|
조회 1,118
|
|
|
|
14년 전
|
조회 1,239
|
|
|
|
14년 전
|
조회 1,291
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 1,588
|
|
|
|
14년 전
|
조회 1,625
|
|
|
|
14년 전
|
조회 2,230
|
|
|
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 1,689
|
|
|
|
14년 전
|
조회 3,482
|
|
|
|
14년 전
|
조회 1,402
|
|
|
|
14년 전
|
조회 1,369
|
|
|
|
14년 전
|
조회 1,769
|
|
|
|
14년 전
|
조회 1,766
|
|
|
|
14년 전
|
조회 2,604
|
|
|
|
14년 전
|
조회 1,830
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 1,155
|
|
|
|
14년 전
|
조회 1,045
|
|
|
|
14년 전
|
조회 1,290
|
|
|
|
14년 전
|
조회 2,808
|
|
|
|
14년 전
|
조회 1,226
|
|
|
|
14년 전
|
조회 1,257
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 1,571
|
|
|
|
14년 전
|
조회 1,216
|
|
|
관리자
|
14년 전
|
조회 1,486
|
|
|
관리자
|
14년 전
|
조회 2,037
|
|
|
|
14년 전
|
조회 1,282
|
|
|
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 1,059
|
|
|
|
14년 전
|
조회 1,139
|
|
|
|
14년 전
|
조회 1,610
|
|
|
관리자
|
14년 전
|
조회 1,947
|
|
|
|
14년 전
|
조회 2,014
|
|
|
관리자
|
14년 전
|
조회 1,469
|
|
|
관리자
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 1,925
|
|
|
|
14년 전
|
조회 1,458
|
|
|
관리자
|
14년 전
|
조회 4,523
|
|
|
관리자
|
14년 전
|
조회 2,500
|
|
|
|
14년 전
|
조회 1,280
|
|
|
|
14년 전
|
조회 1,203
|
|
|
|
14년 전
|
조회 4,149
|
|
|
|
14년 전
|
조회 4,812
|
|
|
|
14년 전
|
조회 1,578
|
|
|
관리자
|
14년 전
|
조회 1,758
|
|
|
|
14년 전
|
조회 5,024
|
|
|
|
14년 전
|
조회 1,786
|
|
|
|
14년 전
|
조회 1,593
|
댓글 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());
});