11

Can anyone recommend a simple datepicker calendar that I can use for a blog to link to different urls rather than for a form? jquery or css based would be good. When clicking next/prev month I don't want it reload page.

abalone
  • 319
  • 2
  • 4
  • 13

8 Answers8

18

jquery ui has a great datepicker you can find it here

http://jqueryui.com/demos/datepicker/

you can use

http://jqueryui.com/demos/datepicker/#event-onSelect

to make your own actions when a date is picked

and if you want it to open without a form you could create a form that's hidden and then bind a click event to it like this

$("button").click(function() {
    $(inputselector).datepicker('show');
});
Breezer
  • 10,410
  • 6
  • 29
  • 50
5

No need to include JQuery or any other third party library.

Specify your input date format in title tag.

HTML:

<script type="text/javascript" src="http://services.iperfect.net/js/IP_generalLib.js">

Body

<input type="text" name="date1" id="date1" alt="date" class="IP_calendar" title="d/m/Y">
1

Here is the MooTools date picker

http://www.monkeyphysics.com/mootools/script/2/datepicker Example http://www.monkeyphysics.com/mootools/script/2/datepicker#examples

admoghal
  • 1,498
  • 1
  • 10
  • 5
1

this datepicker is an excellent solution. datepickers are a must if you want to avoid code injection.

tony gil
  • 9,424
  • 6
  • 76
  • 100
1

I'm particularly fond of this date picker built for Mootools: http://electricprism.com/aeron/calendar/

It's lovely right out of the box.

Brandon Durham
  • 7,096
  • 13
  • 64
  • 101
1

How about the Dijit Calendar from the Dojo framework? It's pretty cool and very easy to implement. I always use this calendar.
https://www.dojotoolkit.org/reference-guide/dijit/Calendar.html

Bat_Programmer
  • 6,717
  • 10
  • 56
  • 67
-1

Use amsul datepicker Package. for step by step integration http://phpnotebook.com/index.php/95-laravel/109-how-to-integrate-datepicker-in-laravel-5

Karthik
  • 5,589
  • 18
  • 46
  • 78
-2

jQuery datepicker is good option

Chinmayee G
  • 7,947
  • 2
  • 31
  • 41