ruby on rails - Disable national holidays present in my database using jquery pickadate plugin -
hi working on rails4 project , want disable national holidays , weekend dates in pickadate. or have use pickdate.js not getting how this. have done following disabling weekends.
$( '.new_leave_datepicker' ).pickadate({ selectmonths: true, selectyears: 25, disable: [ 1,7 ], min: date.now() });
its working fine how national holidays not getting. having table holidays in have holidaydates. please guide steps have follow this. in advance.
you can pass array of disabled dates this:
var datestodisable = [ 1, 4, 7, [2015,3,8], [2015,3,19], new date(2015,3,26) ] $( '.new_leave_datepicker' ).pickadate({ selectmonths: true, selectyears: 25, disable: datestodisable, min: date.now() });
Comments
Post a Comment