Jquery datepicker: disable federal holidays
        Posted  
        
            by Abu Hamzah
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Abu Hamzah
        
        
        
        Published on 2010-04-23T03:07:57Z
        Indexed on 
            2010/04/23
            3:13 UTC
        
        
        Read the original article
        Hit count: 712
        
jQuery
|datepicker
i am working on asp.net using C# and using jquery datepicker
my question is, how can i disable dates which are federal holidays?
i have a dynamic dates which comes from sql server.
anybody have done something similar or any idea how can i achieve this?
$(document).ready(function () {
  $('#endDate').datepicker({ showOn: 'button',
      buttonImage: '../images/Calendar.png',
      buttonImageOnly: true, onSelect: function () { },
      onClose: function () { $(this).focus(); }
    });  
$('#startDate').datepicker({ showOn: 'button',
      buttonImage: '../images/Calendar.png',
      buttonImageOnly: true, onSelect:
        function (dateText, inst) {
          $('#endDate').datepicker("option", 'minDate', new Date(dateText));
        }
      ,
      onClose: function () { $(this).focus(); }
    });
}); 
Thanks.
© Stack Overflow or respective owner