|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 2,301
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,845
|
|
|
|
14년 전
|
조회 1,649
|
|
|
|
14년 전
|
조회 2,362
|
|
|
|
14년 전
|
조회 2,410
|
|
|
|
14년 전
|
조회 1,584
|
|
|
|
14년 전
|
조회 1,690
|
|
|
|
14년 전
|
조회 1,490
|
|
|
|
14년 전
|
조회 3,162
|
|
|
|
14년 전
|
조회 1,280
|
|
|
|
14년 전
|
조회 1,428
|
|
|
|
14년 전
|
조회 2,494
|
|
|
|
14년 전
|
조회 2,776
|
|
|
|
14년 전
|
조회 1,238
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 1,396
|
|
|
위즈웍스
|
14년 전
|
조회 1,487
|
|
|
관리자
|
14년 전
|
조회 1,671
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 1,358
|
|
|
|
14년 전
|
조회 1,168
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 1,526
|
|
|
|
14년 전
|
조회 1,376
|
|
|
|
14년 전
|
조회 1,348
|
|
|
|
14년 전
|
조회 3,179
|
|
|
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 1,836
|
|
|
|
14년 전
|
조회 1,787
|
|
|
|
14년 전
|
조회 2,239
|
|
|
|
14년 전
|
조회 2,668
|
|
|
|
14년 전
|
조회 1,346
|
|
|
|
14년 전
|
조회 1,490
|
|
|
|
14년 전
|
조회 2,482
|
|
|
|
14년 전
|
조회 1,508
|
|
|
관리자
|
14년 전
|
조회 2,810
|
|
|
|
14년 전
|
조회 1,297
|
|
|
관리자
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 2,726
|
|
|
|
14년 전
|
조회 1,551
|
|
|
|
14년 전
|
조회 3,917
|
|
|
|
14년 전
|
조회 1,637
|
|
|
|
14년 전
|
조회 1,191
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 1,349
|
|
|
관리자
|
14년 전
|
조회 2,115
|
|
|
|
14년 전
|
조회 1,208
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 1,440
|
|
|
|
14년 전
|
조회 1,680
|
|
|
|
14년 전
|
조회 1,726
|
|
|
|
14년 전
|
조회 2,323
|
|
|
|
14년 전
|
조회 1,326
|
|
|
|
14년 전
|
조회 1,780
|
|
|
|
14년 전
|
조회 3,577
|
|
|
|
14년 전
|
조회 1,485
|
|
|
|
14년 전
|
조회 1,461
|
|
|
|
14년 전
|
조회 1,865
|
|
|
|
14년 전
|
조회 1,865
|
|
|
|
14년 전
|
조회 2,704
|
|
|
|
14년 전
|
조회 1,928
|
|
|
|
14년 전
|
조회 1,305
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,387
|
|
|
|
14년 전
|
조회 2,885
|
|
|
|
14년 전
|
조회 1,313
|
|
|
|
14년 전
|
조회 1,347
|
|
|
|
14년 전
|
조회 1,440
|
|
|
|
14년 전
|
조회 1,671
|
|
|
|
14년 전
|
조회 1,292
|
|
|
관리자
|
14년 전
|
조회 1,569
|
|
|
관리자
|
14년 전
|
조회 2,129
|
|
|
|
14년 전
|
조회 1,365
|
|
|
|
14년 전
|
조회 1,693
|
|
|
|
14년 전
|
조회 1,144
|
|
|
|
14년 전
|
조회 1,217
|
|
|
|
14년 전
|
조회 1,689
|
|
|
관리자
|
14년 전
|
조회 2,041
|
|
|
|
14년 전
|
조회 2,107
|
|
|
관리자
|
14년 전
|
조회 1,566
|
|
|
관리자
|
14년 전
|
조회 1,493
|
|
|
|
14년 전
|
조회 2,020
|
|
|
|
14년 전
|
조회 1,559
|
|
|
관리자
|
14년 전
|
조회 4,624
|
|
|
관리자
|
14년 전
|
조회 2,597
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 1,297
|
|
|
|
14년 전
|
조회 4,240
|
|
|
|
14년 전
|
조회 4,908
|
|
|
|
14년 전
|
조회 1,677
|
|
|
관리자
|
14년 전
|
조회 1,858
|
|
|
|
14년 전
|
조회 5,120
|
|
|
|
14년 전
|
조회 1,894
|
|
|
|
14년 전
|
조회 1,690
|
댓글 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());
});