|
|
|
14년 전
|
조회 1,758
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 1.1만
|
|
|
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 1,456
|
|
|
|
14년 전
|
조회 2,170
|
|
|
|
14년 전
|
조회 2,209
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,302
|
|
|
|
14년 전
|
조회 2,945
|
|
|
|
14년 전
|
조회 1,092
|
|
|
|
14년 전
|
조회 1,235
|
|
|
|
14년 전
|
조회 2,278
|
|
|
|
14년 전
|
조회 2,582
|
|
|
|
14년 전
|
조회 1,010
|
|
|
|
14년 전
|
조회 1,433
|
|
|
|
14년 전
|
조회 1,174
|
|
|
위즈웍스
|
14년 전
|
조회 1,253
|
|
|
관리자
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 1,160
|
|
|
|
14년 전
|
조회 972
|
|
|
|
14년 전
|
조회 955
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 1,138
|
|
|
|
14년 전
|
조회 1,151
|
|
|
|
14년 전
|
조회 2,938
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 1,624
|
|
|
|
14년 전
|
조회 1,576
|
|
|
|
14년 전
|
조회 2,051
|
|
|
|
14년 전
|
조회 2,476
|
|
|
|
14년 전
|
조회 1,157
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 2,294
|
|
|
|
14년 전
|
조회 1,295
|
|
|
관리자
|
14년 전
|
조회 2,604
|
|
|
|
14년 전
|
조회 1,084
|
|
|
관리자
|
14년 전
|
조회 1,300
|
|
|
|
14년 전
|
조회 1,430
|
|
|
|
14년 전
|
조회 2,502
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 3,708
|
|
|
|
14년 전
|
조회 1,463
|
|
|
|
14년 전
|
조회 998
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 1,172
|
|
|
관리자
|
14년 전
|
조회 1,924
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 1,147
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 1,248
|
|
|
|
14년 전
|
조회 1,475
|
|
|
|
14년 전
|
조회 1,508
|
|
|
|
14년 전
|
조회 2,129
|
|
|
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 1,589
|
|
|
|
14년 전
|
조회 3,386
|
|
|
|
14년 전
|
조회 1,303
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,657
|
|
|
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 2,505
|
|
|
|
14년 전
|
조회 1,703
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 1,062
|
|
|
|
14년 전
|
조회 922
|
|
|
|
14년 전
|
조회 1,187
|
|
|
|
14년 전
|
조회 2,685
|
|
|
|
14년 전
|
조회 1,129
|
|
|
|
14년 전
|
조회 1,144
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 1,466
|
|
|
|
14년 전
|
조회 1,099
|
|
|
관리자
|
14년 전
|
조회 1,371
|
|
|
관리자
|
14년 전
|
조회 1,930
|
|
|
|
14년 전
|
조회 1,181
|
|
|
|
14년 전
|
조회 1,460
|
|
|
|
14년 전
|
조회 961
|
|
|
|
14년 전
|
조회 1,028
|
|
|
|
14년 전
|
조회 1,528
|
|
|
관리자
|
14년 전
|
조회 1,832
|
|
|
|
14년 전
|
조회 1,920
|
|
|
관리자
|
14년 전
|
조회 1,354
|
|
|
관리자
|
14년 전
|
조회 1,316
|
|
|
|
14년 전
|
조회 1,812
|
|
|
|
14년 전
|
조회 1,349
|
|
|
관리자
|
14년 전
|
조회 4,429
|
|
|
관리자
|
14년 전
|
조회 2,385
|
|
|
|
14년 전
|
조회 1,178
|
|
|
|
14년 전
|
조회 1,094
|
|
|
|
14년 전
|
조회 4,047
|
|
|
|
14년 전
|
조회 4,720
|
|
|
|
14년 전
|
조회 1,480
|
|
|
관리자
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 4,921
|
|
|
|
14년 전
|
조회 1,688
|
|
|
|
14년 전
|
조회 1,478
|
댓글 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());
});