title: jQuery UI Datepicker - return values
body: <p>I am following a tutorial about jQuery UI, and, although it works, I am trying to find the explanation in the jquery UI Datepicker documentation but I can't find what I am looking for.</p>
  
  <p>To disable weekends, the tutorial creates a function:</p>
  
  <pre><code>   function onBeforeShowDay(theDate) {
          //day 0 is sunday, 6 is saturday
          if(theDate.getDay() == 0 || theDate.getDay() == 6) {
              return [false, "weekend", "Weekends disabled"];
          }
          return [true, ""];
      }
  </code></pre>
  
  <p>And then it gets called on beforeShowDay:</p>
  
  <pre><code> $("#datepick1").datepicker({
             firstDay: 1,
             showButtonPanel: true,
             currentText: "Today",
             closeText: "close",
             beforeShowDay: onBeforeShowDay,
             numberOfMonths: 1,
             constrainInput: true
  
         });
  </code></pre>
  
  <p>The return  value is an array with true/false, a css class you might want (it can be empty), and the title you want for those weekends. Where am I suppose to find this?</p>
  
  <p>Thank you </p>