SHARE
TWEET

Untitled

a guest Oct 21st, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ready(function( $ ){
  2.  
  3.     var array = [ '2019-10-26', '2019-10-27', '2019-10-28', '2019-10-29' ]
  4.  
  5.     $( 'input' ).datepicker( {
  6.         beforeShowDay: function( date ) {
  7.             var string = jQuery.datepicker.formatDate( 'yy-mm-dd', date );
  8.             return [ array.indexOf(string) == -1 ]
  9.         }
  10.     } );
  11. } );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top