|
|
|
14년 전
|
조회 1,679
|
|
|
|
14년 전
|
조회 2,026
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,556
|
|
|
|
14년 전
|
조회 1,384
|
|
|
|
14년 전
|
조회 2,088
|
|
|
|
14년 전
|
조회 2,135
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,402
|
|
|
|
14년 전
|
조회 1,217
|
|
|
|
14년 전
|
조회 2,862
|
|
|
|
14년 전
|
조회 1,006
|
|
|
|
14년 전
|
조회 1,169
|
|
|
|
14년 전
|
조회 2,211
|
|
|
|
14년 전
|
조회 2,496
|
|
|
|
14년 전
|
조회 925
|
|
|
|
14년 전
|
조회 1,352
|
|
|
|
14년 전
|
조회 1,103
|
|
|
위즈웍스
|
14년 전
|
조회 1,170
|
|
|
관리자
|
14년 전
|
조회 1,351
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 1,080
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 890
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 1,251
|
|
|
|
14년 전
|
조회 1,054
|
|
|
|
14년 전
|
조회 1,089
|
|
|
|
14년 전
|
조회 2,870
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 1,548
|
|
|
|
14년 전
|
조회 1,498
|
|
|
|
14년 전
|
조회 2,002
|
|
|
|
14년 전
|
조회 2,415
|
|
|
|
14년 전
|
조회 1,107
|
|
|
|
14년 전
|
조회 1,189
|
|
|
|
14년 전
|
조회 2,207
|
|
|
|
14년 전
|
조회 1,219
|
|
|
관리자
|
14년 전
|
조회 2,538
|
|
|
|
14년 전
|
조회 1,018
|
|
|
관리자
|
14년 전
|
조회 1,236
|
|
|
|
14년 전
|
조회 1,349
|
|
|
|
14년 전
|
조회 2,419
|
|
|
|
14년 전
|
조회 1,254
|
|
|
|
14년 전
|
조회 3,627
|
|
|
|
14년 전
|
조회 1,389
|
|
|
|
14년 전
|
조회 918
|
|
|
|
14년 전
|
조회 1,256
|
|
|
|
14년 전
|
조회 1,088
|
|
|
관리자
|
14년 전
|
조회 1,866
|
|
|
|
14년 전
|
조회 949
|
|
|
|
14년 전
|
조회 1,070
|
|
|
|
14년 전
|
조회 1,111
|
|
|
|
14년 전
|
조회 1,155
|
|
|
|
14년 전
|
조회 1,397
|
|
|
|
14년 전
|
조회 1,432
|
|
|
|
14년 전
|
조회 2,042
|
|
|
|
14년 전
|
조회 1,058
|
|
|
|
14년 전
|
조회 1,513
|
|
|
|
14년 전
|
조회 3,306
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 1,581
|
|
|
|
14년 전
|
조회 1,594
|
|
|
|
14년 전
|
조회 2,436
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 1,019
|
|
|
|
14년 전
|
조회 982
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 1,105
|
|
|
|
14년 전
|
조회 2,611
|
|
|
|
14년 전
|
조회 1,053
|
|
|
|
14년 전
|
조회 1,062
|
|
|
|
14년 전
|
조회 1,166
|
|
|
|
14년 전
|
조회 1,382
|
|
|
|
14년 전
|
조회 1,019
|
|
|
관리자
|
14년 전
|
조회 1,299
|
|
|
관리자
|
14년 전
|
조회 1,858
|
|
|
|
14년 전
|
조회 1,108
|
|
|
|
14년 전
|
조회 1,381
|
|
|
|
14년 전
|
조회 896
|
|
|
|
14년 전
|
조회 958
|
|
|
|
14년 전
|
조회 1,443
|
|
|
관리자
|
14년 전
|
조회 1,758
|
|
|
|
14년 전
|
조회 1,839
|
|
|
관리자
|
14년 전
|
조회 1,287
|
|
|
관리자
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 1,743
|
|
|
|
14년 전
|
조회 1,269
|
|
|
관리자
|
14년 전
|
조회 4,356
|
|
|
관리자
|
14년 전
|
조회 2,310
|
|
|
|
14년 전
|
조회 1,100
|
|
|
|
14년 전
|
조회 1,035
|
|
|
|
14년 전
|
조회 3,980
|
|
|
|
14년 전
|
조회 4,647
|
|
|
|
14년 전
|
조회 1,411
|
|
|
관리자
|
14년 전
|
조회 1,590
|
|
|
|
14년 전
|
조회 4,831
|
|
|
|
14년 전
|
조회 1,617
|
|
|
|
14년 전
|
조회 1,402
|
댓글 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());
});