Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple DatePicker-like Calendar [closed]

Tags:

jquery

css

php

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.

like image 556
abalone Avatar asked Dec 02 '10 06:12

abalone


People also ask

How do you close a date picker?

In this article, we will use the jQuery UI Datepicker hide() method to close the previously opened date picker widget. This method does not accept any parameter.

How do I make a datepicker read only?

$("#datepicker"). attr('readonly', 'readonly');


1 Answers

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');
});
like image 74
Breezer Avatar answered Oct 19 '22 11:10

Breezer