Datepicker - set the data inside the input field when one of the date is selected
I have some holidays days:
- var holidayDays = ['24/12/2012', '2/1/2013', '14/2/2013'];
and code:
- if( parseInt($("#date").val()) == holidayDays ) {
- var freeday_value = ('holiday');
- $('#holiday_day').val(freeday_value);
- }
Who didn't work.
What
I want to achieve: if in datepicker someone pick the date from above table, then on input field (#holiday_day) will be displayed word: holiday.
Thanks for any help.