|
|
|
14년 전
|
조회 2,025
|
|
|
|
14년 전
|
조회 2,342
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,883
|
|
|
|
14년 전
|
조회 1,691
|
|
|
|
14년 전
|
조회 2,397
|
|
|
|
14년 전
|
조회 2,444
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 1,728
|
|
|
|
14년 전
|
조회 1,517
|
|
|
|
14년 전
|
조회 3,196
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 2,533
|
|
|
|
14년 전
|
조회 2,813
|
|
|
|
14년 전
|
조회 1,270
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 1,431
|
|
|
위즈웍스
|
14년 전
|
조회 1,524
|
|
|
관리자
|
14년 전
|
조회 1,699
|
|
|
|
14년 전
|
조회 1,509
|
|
|
|
14년 전
|
조회 1,392
|
|
|
|
14년 전
|
조회 1,210
|
|
|
|
14년 전
|
조회 1,215
|
|
|
|
14년 전
|
조회 1,467
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 1,419
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 3,218
|
|
|
|
14년 전
|
조회 1,699
|
|
|
|
14년 전
|
조회 1,866
|
|
|
|
14년 전
|
조회 1,811
|
|
|
|
14년 전
|
조회 2,287
|
|
|
|
14년 전
|
조회 2,712
|
|
|
|
14년 전
|
조회 1,384
|
|
|
|
14년 전
|
조회 1,525
|
|
|
|
14년 전
|
조회 2,526
|
|
|
|
14년 전
|
조회 1,554
|
|
|
관리자
|
14년 전
|
조회 2,858
|
|
|
|
14년 전
|
조회 1,340
|
|
|
관리자
|
14년 전
|
조회 1,557
|
|
|
|
14년 전
|
조회 1,669
|
|
|
|
14년 전
|
조회 2,766
|
|
|
|
14년 전
|
조회 1,604
|
|
|
|
14년 전
|
조회 3,959
|
|
|
|
14년 전
|
조회 1,685
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 1,533
|
|
|
|
14년 전
|
조회 1,394
|
|
|
관리자
|
14년 전
|
조회 2,155
|
|
|
|
14년 전
|
조회 1,247
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 1,444
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 1,722
|
|
|
|
14년 전
|
조회 1,765
|
|
|
|
14년 전
|
조회 2,351
|
|
|
|
14년 전
|
조회 1,360
|
|
|
|
14년 전
|
조회 1,813
|
|
|
|
14년 전
|
조회 3,609
|
|
|
|
14년 전
|
조회 1,518
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 1,904
|
|
|
|
14년 전
|
조회 1,909
|
|
|
|
14년 전
|
조회 2,739
|
|
|
|
14년 전
|
조회 1,969
|
|
|
|
14년 전
|
조회 1,350
|
|
|
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 1,430
|
|
|
|
14년 전
|
조회 2,918
|
|
|
|
14년 전
|
조회 1,345
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 1,473
|
|
|
|
14년 전
|
조회 1,709
|
|
|
|
14년 전
|
조회 1,327
|
|
|
관리자
|
14년 전
|
조회 1,602
|
|
|
관리자
|
14년 전
|
조회 2,157
|
|
|
|
14년 전
|
조회 1,396
|
|
|
|
14년 전
|
조회 1,724
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 1,256
|
|
|
|
14년 전
|
조회 1,726
|
|
|
관리자
|
14년 전
|
조회 2,081
|
|
|
|
14년 전
|
조회 2,136
|
|
|
관리자
|
14년 전
|
조회 1,606
|
|
|
관리자
|
14년 전
|
조회 1,534
|
|
|
|
14년 전
|
조회 2,068
|
|
|
|
14년 전
|
조회 1,607
|
|
|
관리자
|
14년 전
|
조회 4,664
|
|
|
관리자
|
14년 전
|
조회 2,641
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 4,274
|
|
|
|
14년 전
|
조회 4,956
|
|
|
|
14년 전
|
조회 1,723
|
|
|
관리자
|
14년 전
|
조회 1,890
|
|
|
|
14년 전
|
조회 5,148
|
|
|
|
14년 전
|
조회 1,927
|
|
|
|
14년 전
|
조회 1,726
|
댓글 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());
});