|
|
|
12-08-29
|
조회 3,877
|
|
|
|
12-08-07
|
조회 3,554
|
|
|
|
12-08-03
|
조회 3,494
|
|
|
|
12-07-31
|
조회 3,609
|
|
|
|
12-07-30
|
조회 3,565
|
|
|
|
12-07-16
|
조회 3,764
|
|
|
|
12-07-15
|
조회 3,462
|
|
|
|
12-07-07
|
조회 3,459
|
|
|
|
12-07-06
|
조회 3,551
|
|
|
|
12-07-03
|
조회 3,621
|
|
|
|
12-06-29
|
조회 3,212
|
|
|
|
12-06-22
|
조회 3,577
|
|
|
|
12-06-17
|
조회 3,675
|
|
|
|
12-05-21
|
조회 3,757
|
|
|
|
12-05-02
|
조회 3,347
|
|
|
|
12-05-02
|
조회 4,138
|
|
|
|
12-05-02
|
조회 3,252
|
|
|
|
12-04-30
|
조회 3,381
|
|
|
|
12-04-30
|
조회 3,096
|
|
|
|
12-03-17
|
조회 3,892
|
|
|
|
12-03-10
|
조회 3,326
|
|
|
|
12-03-08
|
조회 3,738
|
|
|
|
12-03-03
|
조회 3,506
|
|
|
|
12-02-27
|
조회 4,916
|
|
|
|
12-02-17
|
조회 4,258
|
|
|
|
12-02-16
|
조회 4,406
|
|
|
|
12-02-03
|
조회 3,256
|
|
|
|
12-01-31
|
조회 2,992
|
|
|
|
12-01-24
|
조회 3,068
|
|
|
|
12-01-17
|
조회 3,813
|
|
|
|
12-01-05
|
조회 3,379
|
|
|
|
11-12-30
|
조회 2,990
|
|
|
|
11-12-23
|
조회 4,580
|
|
|
|
11-12-08
|
조회 3,303
|
|
|
|
11-12-07
|
조회 4,325
|
|
|
선택이란
|
11-11-27
|
조회 3,759
|
|
|
|
11-11-25
|
조회 4,021
|
|
|
|
11-11-23
|
조회 3,430
|
|
|
|
11-11-22
|
조회 3,392
|
|
|
|
11-11-09
|
조회 3,170
|
|
|
|
11-10-23
|
조회 3,068
|
|
|
|
11-10-19
|
조회 3,048
|
|
|
|
11-10-08
|
조회 2,753
|
|
|
|
11-10-04
|
조회 2,770
|
|
|
|
11-10-04
|
조회 5,210
|
|
|
|
11-09-01
|
조회 4,268
|
|
|
|
11-08-13
|
조회 2,443
|
|
|
|
11-08-06
|
조회 3,131
|
|
|
|
11-07-11
|
조회 3,495
|
|
|
|
11-06-27
|
조회 2,899
|
|
|
|
11-06-21
|
조회 2,514
|
|
|
|
11-06-13
|
조회 2,349
|
|
|
|
11-06-07
|
조회 2,334
|
|
|
|
11-05-26
|
조회 2,339
|
|
|
|
11-04-20
|
조회 2,669
|
|
|
|
11-03-21
|
조회 2,762
|
|
|
|
11-03-18
|
조회 2,457
|
|
|
|
11-03-11
|
조회 2,482
|
|
|
|
11-02-07
|
조회 2,310
|
|
|
|
11-01-18
|
조회 2,636
|
|
|
|
11-01-12
|
조회 2,323
|
|
|
|
11-01-06
|
조회 2,475
|
|
|
|
10-12-10
|
조회 2,735
|
|
|
|
10-12-09
|
조회 2,379
|
|
|
|
10-12-08
|
조회 4,982
|
|
|
|
10-11-29
|
조회 2,472
|
|
|
|
10-11-28
|
조회 2,711
|
|
|
|
10-11-28
|
조회 2,541
|
|
|
|
10-11-19
|
조회 2,740
|
|
|
|
10-11-04
|
조회 2,663
|
|
|
|
10-10-21
|
조회 2,382
|
|
|
|
10-10-19
|
조회 3,331
|
|
|
|
10-10-12
|
조회 2,656
|
|
|
|
10-10-07
|
조회 2,445
|
|
|
관리자
|
10-09-30
|
조회 3,440
|
|
|
|
10-09-17
|
조회 3,838
|
|
|
|
10-09-17
|
조회 3,798
|
|
|
|
10-05-31
|
조회 3,461
|
|
|
|
09-12-31
|
조회 3,606
|
|
|
|
09-07-23
|
조회 4,898
|
|
|
|
08-09-16
|
조회 3,165
|
|
|
|
08-09-06
|
조회 2,885
|
|
|
|
08-09-04
|
조회 3,281
|
|
|
|
08-08-16
|
조회 4,363
|
|
|
|
08-08-15
|
조회 3,241
|
|
|
헌이
|
08-08-14
|
조회 4,454
|
|
|
헌이
|
08-08-12
|
조회 3,809
|
|
|
|
08-07-23
|
조회 2,740
|
|
|
|
08-07-10
|
조회 3,677
|
|
|
|
08-07-04
|
조회 2,907
|
|
|
헌이
|
08-06-27
|
조회 7,564
|
|
|
관리자
|
08-06-19
|
조회 4,851
|
|
|
헌이
|
08-05-27
|
조회 5,462
|
|
|
|
08-05-25
|
조회 5,289
|
|
|
|
08-05-23
|
조회 3,362
|
|
|
관리자
|
08-05-23
|
조회 4,463
|
|
|
|
08-05-21
|
조회 4,842
|
|
|
|
08-05-20
|
조회 4,009
|
|
|
|
08-05-20
|
조회 3,246
|
|
|
관리자
|
08-04-18
|
조회 4,238
|
댓글 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());
});