D
D
DeusModus2011-05-26 11:55:50
JavaScript
DeusModus, 2011-05-26 11:55:50

jQuery UI datepicker - only certain dates available?

Is it possible in the jQuery UI datepicker module to only include specific dates? The most similar is Date Range, but that's why it's Range, because it only works on a range.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bezumkin, 2011-05-26
@bezumkin

There is. You need to give it an array of dates to display.

   foreach($dates as $k => $v) {
            $dates2[] = array($k, '', $v);
        }
  
   return json_encode($dates2); 

habrahabr.ru/blogs/modx/111155/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question