disable specific dates in single month of every year jquery datepicker in jquery -


i want disable specific date specific month of every year in datepicker jquery ui. example: disable auguest(month) 15(date) of every year in datetime picker

use beforeshowday option.

$("selector").datepicker({     ...     beforeshowday: function(date) {         var month = date.getmonth()+1; // +1 because js months start @ 0         var day = date.getdate();         return [!(month == 8 && day == 15), ""];     } }); 

demo


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -