메뉴 건너뛰기

조회 수 1555 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
  
<link rel="stylesheet"
    type="text/css" />
  
</head>
<body>
  
    <h1>JQuery 달력</h1>
    <h2>date Picker</h2>
  
    <p>
        선택일:<input type="text" id="date">
    </p>
  
    <p>
        text박스를 클릭하면, <strong>캘린더</strong>가 표시됩니다
    </p>
  
     
 
    년도: <p id="year"></p>
    월:
    <p id="month"></p>
    일:
    <p id="day"></p>
    요일:
    <p id="mydate"></p>
  
    <script type="text/javascript">
        $(function() {
            $("#date").datepicker(
                    {
                        dateFormat : "yy/mm/dd",
                        dayNamesMin : [ "일", "월", "화", "수", "목", "금", "토" ],
                        monthNames : [ "1월", "2월", "3월", "4월", "5월", "6월",
                                "7월", "8월", "9월", "10월", "11월", "12월" ],
                        onSelect : function(day) {
                            alert(day + " 선택되었습니다");
  
                            var arrDate = day.split("/");
                            var year = arrDate[0];
                            var month = arrDate[1];
                            var day = arrDate[2];
  
                            $("#year").text(year);
                            $("#month").text(month);
                            $("#day").text(day);
  
                            var date = new Date($("#date").datepicker({
                                dateFormat : "yy/mm/dd"
                            }).val());
                            alert("date: " + date.getDay()); // 요일
                            alert("date: " + date.getDate()); // 일자
  
                            var week = new Array("일", "월", "화", "수", "목", "금",
                                    "토");
                            $("#mydate").text(week[date.getDay()]);
                        }
                    });
        });
    </script>
  
</body>
</html>


datePicker.PNG




  1. jquery 팝업 차단 없이 띄우기

    Date2019.03.05 Views3136
    Read More
  2. [jQuery] 라디오(radio) 버튼, 체크박스(checkbox) 선택/해제 하는 방법

    Date2019.03.05 Views1318
    Read More
  3. jQuery 기초 (Query link url / download (위치, 사용법) // p태그, id, class 접근 / 일반태그 가져오기 / 클릭시 값)

    Date2019.01.16 Views1275
    Read More
  4. jQuery 기초 (클릭하면 이미지 변경 / mouseover시 애니메이션 효과주기 / 동적으로 변경)

    Date2019.01.16 Views1687
    Read More
  5. jQuery 기초 (focus, blur, toggle / mouseenter, mouseleave, mousedown, mouseup, hover)

    Date2019.01.16 Views1431
    Read More
  6. jQuery 기초 (style.css <link> 로 추가하기 / 버튼 클릭시 데이터 삽입)

    Date2019.01.16 Views1353
    Read More
  7. jQuery 기초 (JQuery - text(), val(), html(), attr(), prop())

    Date2019.01.16 Views1450
    Read More
  8. jQuery 기초 (attr()로 두가지 동시에 접근 / 변경)

    Date2019.01.16 Views1286
    Read More
  9. jQuery 기초 (텍스트 추가 (createElement, createTextNode, appendChild), (html, javascript, jquery)

    Date2019.01.16 Views1581
    Read More
  10. jQuery 기초 ((문자열 추가 .before / .after) (문자열 삭제 .remove / .empty)

    Date2019.01.16 Views1285
    Read More
  11. jQuery 기초 (txt 파일 가져오기 (load) , 클릭시에 배경색을 변경(json))

    Date2019.01.16 Views3444
    Read More
  12. Query 기초 (동적 테이블 (데이터 추가 / 삭제), integrateTable(정렬(sort))

    Date2019.01.16 Views2364
    Read More
  13. jQuery 기초 (jQuery 달력 (datepicker))

    Date2019.01.16 Views1555
    Read More
  14. jQuery 기초 (Postcodify - 도로명주소 우편번호 검색 프로그램 (코딩 예제) (HTML) / POP UP 버젼)

    Date2019.01.16 Views1499
    Read More
  15. .removeAttr() : 특정 속성을 제거

    Date2019.01.16 Views1233
    Read More
  16. .attr() : 태그의 속성 값을 읽어오거나 속성을 추가및 재설정

    Date2019.01.16 Views1153
    Read More
  17. popModal jQuery Plugin Examples / 무료 jQuery 팝업 플러그인

    Date2019.01.16 Views1480
    Read More
  18. jQuery Plugin : Slider

    Date2019.01.10 Views1327
    Read More
  19. jQuery datepicker 팝업창 사이즈 바꾸기

    Date2019.01.10 Views1845
    Read More
  20. jQuery를 이용한 스크롤 따라니는 배너를 쉽게 맨들기(scroll follow)

    Date2019.01.10 Views1298
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

나눔고딕 사이트로 가기

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5