Help me Out - Function and Array
Hello experts,
can you help me out with these functions, I would like to get the list os holidays:
- var oHoliday = [];
- oHoliday = holidayList();
- $('#datetimepicker12').datetimepicker({
- inline: true,
- sideBySide: true,
- minDate:new Date(),
- disabledDates: oHoliday //The holidays llist will be insert here
- });
- function holidayList(){
- var days ="";
- $.get('/holidays/ajax/', function(oHoliday){
- $.each(oHoliday, function(i, getHoliday) {
- // oHoliday.push( getHoliday.day );
- days += getHoliday.day;
- });
- });
- return days;
- }