asmaoui / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Selecting only a day per week ?? #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For the last version:

I need only saturdays to be clicked (thus, selecting entire weeks from
saturday to saturday)

It's possible ?? How can I know if the selected day is saturday ??

Thanks in advance

Original issue reported on code.google.com by damaso.t...@gmail.com on 19 Jan 2009 at 10:32

GoogleCodeExporter commented 9 years ago
Did you see this example?

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerCustomCellR
ender.html

You need to use a renderCallback like in this example and set a class of 
disabled
where thisDate.getDay() != 1

Original comment by kelvin.l...@gmail.com on 20 Jan 2009 at 10:27

GoogleCodeExporter commented 9 years ago
In addition, I've just added selectWeek functionality to the plugin which 
allows you
to select a week at a time. See this example:

http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerSelectWeek.
html

Cheers,

Kelvin :)

Original comment by kelvin.l...@gmail.com on 25 Jan 2009 at 2:11