3

My client wants a program which will use a datepicker which will have certain dates unclickable, disabled, or greyed out because they are full or not applicable for her business hours.

Is there a way to, given an array of dates, either alert the user that the option is bot doable or block it out/grey out, so it cant be selected as a date? I would prefer the later option.

I was looking through the Jquery UI fatepicker tool to try to figure this out.

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

Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
  • 1
    Check this http://stackoverflow.com/questions/501943/can-the-jquery-ui-datepicker-be-made-to-disable-saturdays-and-sundays-and-holid – Hazem Salama Sep 17 '12 at 19:24

1 Answers1

5

David Walsh posted about this some time ago...

http://davidwalsh.name/jquery-datepicker-disable-days

You need to use the 'beforeShowDay' event

BLSully
  • 5,929
  • 1
  • 27
  • 43