|
|
선택이란
|
11-08-25
|
조회 3,686
|
|
|
|
11-08-25
|
조회 2,885
|
|
|
선택이란
|
11-08-25
|
조회 2,579
|
|
|
선택이란
|
11-08-24
|
조회 2,478
|
|
|
관리자
|
11-08-24
|
조회 3,110
|
|
|
관리자
|
11-08-24
|
조회 4,431
|
|
|
선택이란
|
11-08-23
|
조회 2,500
|
|
|
|
11-08-23
|
조회 4,338
|
|
|
|
11-08-23
|
조회 3,477
|
|
|
|
11-08-23
|
조회 2,564
|
|
|
|
11-08-23
|
조회 2,790
|
|
|
|
11-08-23
|
조회 2,711
|
|
|
|
11-08-23
|
조회 2,841
|
|
|
|
11-08-23
|
조회 2,297
|
|
|
|
11-08-23
|
조회 2,440
|
|
|
|
11-08-23
|
조회 2,602
|
|
|
|
11-08-23
|
조회 3,008
|
|
|
|
11-08-23
|
조회 2,599
|
|
|
|
11-08-22
|
조회 3,039
|
|
|
|
11-08-22
|
조회 2,752
|
|
|
|
11-08-22
|
조회 2,896
|
|
|
|
11-08-22
|
조회 2,491
|
|
|
관리자
|
11-08-22
|
조회 2,762
|
|
|
|
11-08-21
|
조회 2,700
|
|
|
선택이란
|
11-08-21
|
조회 2,626
|
|
|
|
11-08-20
|
조회 2,527
|
|
|
|
11-08-20
|
조회 2,894
|
|
|
|
11-08-20
|
조회 3,322
|
|
|
|
11-08-19
|
조회 2,732
|
|
|
|
11-08-19
|
조회 2,514
|
|
|
|
11-08-19
|
조회 5,046
|
|
|
|
11-08-19
|
조회 2,664
|
|
|
|
11-08-19
|
조회 2,517
|
|
|
|
11-08-19
|
조회 3,788
|
|
|
|
11-08-19
|
조회 3,229
|
|
|
|
11-08-18
|
조회 3,721
|
|
|
|
11-08-18
|
조회 2,253
|
|
|
|
11-08-18
|
조회 2,483
|
|
|
|
11-08-18
|
조회 2,312
|
|
|
|
11-08-18
|
조회 2,160
|
|
|
관리자
|
11-08-18
|
조회 2,279
|
|
|
관리자
|
11-08-18
|
조회 2,410
|
|
|
|
11-08-17
|
조회 3,209
|
|
|
|
11-08-17
|
조회 2,602
|
|
|
|
11-08-17
|
조회 2,740
|
|
|
|
11-08-17
|
조회 2,285
|
|
|
|
11-08-17
|
조회 2,706
|
|
|
|
11-08-17
|
조회 3,421
|
|
|
|
11-08-17
|
조회 2,824
|
|
|
|
11-08-16
|
조회 3,068
|
|
|
|
11-08-16
|
조회 2,570
|
|
|
|
11-08-16
|
조회 2,655
|
|
|
|
11-08-16
|
조회 2,520
|
|
|
|
11-08-16
|
조회 2,853
|
|
|
|
11-08-16
|
조회 2,654
|
|
|
|
11-08-16
|
조회 2,068
|
|
|
|
11-08-16
|
조회 2,227
|
|
|
관리자
|
11-08-16
|
조회 2,280
|
|
|
|
11-08-16
|
조회 2,637
|
|
|
|
11-08-16
|
조회 2,539
|
|
|
|
11-08-16
|
조회 2,529
|
|
|
|
11-08-15
|
조회 2,491
|
|
|
|
11-08-15
|
조회 3,019
|
|
|
|
11-08-13
|
조회 2,643
|
|
|
|
11-08-13
|
조회 2,683
|
|
|
|
11-08-13
|
조회 2,572
|
|
|
|
11-08-12
|
조회 2,355
|
|
|
|
11-08-12
|
조회 3,496
|
|
|
관리자
|
11-08-12
|
조회 3,284
|
|
|
관리자
|
11-08-12
|
조회 2,724
|
|
|
|
11-08-12
|
조회 2,524
|
|
|
|
11-08-11
|
조회 3,706
|
|
|
|
11-08-11
|
조회 2,997
|
|
|
|
11-08-11
|
조회 2,935
|
|
|
|
11-08-11
|
조회 2,464
|
|
|
|
11-08-10
|
조회 3,236
|
|
|
|
11-08-10
|
조회 5,452
|
|
|
|
11-08-10
|
조회 4,148
|
|
|
|
11-08-09
|
조회 2,726
|
|
|
|
11-08-09
|
조회 2,330
|
|
|
|
11-08-09
|
조회 2,408
|
|
|
|
11-08-09
|
조회 3,029
|
|
|
|
11-08-09
|
조회 2,684
|
|
|
|
11-08-09
|
조회 2,973
|
|
|
|
11-08-08
|
조회 3,066
|
|
|
|
11-08-08
|
조회 3,112
|
|
|
|
11-08-08
|
조회 2,204
|
|
|
|
11-08-08
|
조회 2,483
|
|
|
|
11-08-08
|
조회 4,402
|
|
|
|
11-08-08
|
조회 2,423
|
|
|
복스리
|
11-08-08
|
조회 2,951
|
|
|
선택이란
|
11-08-08
|
조회 2,501
|
|
|
똥싼너구리
|
11-08-08
|
조회 2,306
|
|
|
|
11-08-08
|
조회 3,079
|
|
|
|
11-08-08
|
조회 2,335
|
|
|
똥싼너구리
|
11-08-07
|
조회 3,150
|
|
|
|
11-08-07
|
조회 2,701
|
|
|
|
11-08-06
|
조회 3,312
|
|
|
|
11-08-06
|
조회 3,320
|
|
|
선택이란
|
11-08-06
|
조회 2,878
|
댓글 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());
});