-5

I am trying to use calendar which I found on Codepen.

But if I copy the code, I get only a blank page and only Background colour is changing to that which is in the styles nothing else.

I put that what I copied to Jsfiddle and by Codepen you will find the original

 <div id="datepicker" class="calendar"></div>  

That's the html tag that I have in my <Body>, nothing else.

Vito Gentile
  • 13,336
  • 9
  • 61
  • 96

1 Answers1

0

You didn't added JQUERY in your fiddle Add Jquery.1.8.3 and

Css Like

.calendar {
  position: absolute;
  width: 430px;
  left: 50%;
  top: 50%;
  margin: -145px 0px 0px -140px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
#datepicker div{
    width:420px;
}

Working Demo

Edit :

To make date picker in german language add this code

$.datepicker.setDefaults($.datepicker.regional['de']);
$( "#datepicker" ).datepicker({ firstDay: 1});

Localise to german

Demo of Date Picker in German

Community
  • 1
  • 1
Sid
  • 801
  • 8
  • 19
  • I had edited my answer to make datepicker german and please See link of Localise to german too. – Sid Jun 20 '14 at 12:54
  • If its works for you then please watt up answer so that it will helps more to other to consider it as right answer and welcome – Sid Jun 20 '14 at 13:07