Higlight days on a datepicker from database

Higlight days on a datepicker from database

Hi all


but not understand how to get dates form a database, in the example have static Dates:

var eventDates = {};
eventDates[ new Date( '08/07/2016' )] = new Date( '08/07/2016' );
eventDates[ new Date( '08/12/2016' )] = new Date( '08/12/2016' );
eventDates[ new Date( '08/18/2016' )] = new Date( '08/18/2016' );
eventDates[ new Date( '08/23/2016' )] = new Date( '08/23/2016' );



as i understand initially we need diable the datepicket input contrl and when the dates was extracted from databse in the .done enable the datepicket input control..
i use Jsp and servlets in the backend?
tahnks any advice?