|
|
|
14년 전
|
조회 1,862
|
|
|
|
14년 전
|
조회 2,202
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,738
|
|
|
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 2,256
|
|
|
|
14년 전
|
조회 2,324
|
|
|
|
14년 전
|
조회 1,491
|
|
|
|
14년 전
|
조회 1,570
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 3,051
|
|
|
|
14년 전
|
조회 1,188
|
|
|
|
14년 전
|
조회 1,326
|
|
|
|
14년 전
|
조회 2,387
|
|
|
|
14년 전
|
조회 2,671
|
|
|
|
14년 전
|
조회 1,118
|
|
|
|
14년 전
|
조회 1,519
|
|
|
|
14년 전
|
조회 1,286
|
|
|
위즈웍스
|
14년 전
|
조회 1,353
|
|
|
관리자
|
14년 전
|
조회 1,542
|
|
|
|
14년 전
|
조회 1,363
|
|
|
|
14년 전
|
조회 1,265
|
|
|
|
14년 전
|
조회 1,059
|
|
|
|
14년 전
|
조회 1,072
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 1,412
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 3,047
|
|
|
|
14년 전
|
조회 1,555
|
|
|
|
14년 전
|
조회 1,726
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 2,132
|
|
|
|
14년 전
|
조회 2,557
|
|
|
|
14년 전
|
조회 1,248
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 2,379
|
|
|
|
14년 전
|
조회 1,392
|
|
|
관리자
|
14년 전
|
조회 2,699
|
|
|
|
14년 전
|
조회 1,186
|
|
|
관리자
|
14년 전
|
조회 1,394
|
|
|
|
14년 전
|
조회 1,526
|
|
|
|
14년 전
|
조회 2,605
|
|
|
|
14년 전
|
조회 1,436
|
|
|
|
14년 전
|
조회 3,808
|
|
|
|
14년 전
|
조회 1,540
|
|
|
|
14년 전
|
조회 1,088
|
|
|
|
14년 전
|
조회 1,410
|
|
|
|
14년 전
|
조회 1,270
|
|
|
관리자
|
14년 전
|
조회 2,000
|
|
|
|
14년 전
|
조회 1,104
|
|
|
|
14년 전
|
조회 1,232
|
|
|
|
14년 전
|
조회 1,282
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 1,575
|
|
|
|
14년 전
|
조회 1,619
|
|
|
|
14년 전
|
조회 2,213
|
|
|
|
14년 전
|
조회 1,221
|
|
|
|
14년 전
|
조회 1,673
|
|
|
|
14년 전
|
조회 3,468
|
|
|
|
14년 전
|
조회 1,392
|
|
|
|
14년 전
|
조회 1,356
|
|
|
|
14년 전
|
조회 1,753
|
|
|
|
14년 전
|
조회 1,759
|
|
|
|
14년 전
|
조회 2,595
|
|
|
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 1,144
|
|
|
|
14년 전
|
조회 1,028
|
|
|
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 2,797
|
|
|
|
14년 전
|
조회 1,219
|
|
|
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 1,326
|
|
|
|
14년 전
|
조회 1,563
|
|
|
|
14년 전
|
조회 1,213
|
|
|
관리자
|
14년 전
|
조회 1,473
|
|
|
관리자
|
14년 전
|
조회 2,028
|
|
|
|
14년 전
|
조회 1,274
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 1,053
|
|
|
|
14년 전
|
조회 1,130
|
|
|
|
14년 전
|
조회 1,604
|
|
|
관리자
|
14년 전
|
조회 1,933
|
|
|
|
14년 전
|
조회 2,007
|
|
|
관리자
|
14년 전
|
조회 1,455
|
|
|
관리자
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 1,906
|
|
|
|
14년 전
|
조회 1,448
|
|
|
관리자
|
14년 전
|
조회 4,513
|
|
|
관리자
|
14년 전
|
조회 2,484
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,191
|
|
|
|
14년 전
|
조회 4,138
|
|
|
|
14년 전
|
조회 4,806
|
|
|
|
14년 전
|
조회 1,567
|
|
|
관리자
|
14년 전
|
조회 1,746
|
|
|
|
14년 전
|
조회 5,013
|
|
|
|
14년 전
|
조회 1,776
|
|
|
|
14년 전
|
조회 1,581
|
댓글 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());
});