title: JavaScript: jQuery Datepicker - simple highlighting of specific days, who can help? (source inside)
body: <p>i want to use the Datepicker for highlighting specific dates. Here is my latest code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var dates = [30/04/2010, 01/05/2010];
  
  $(function(){
  
      $('#datepicker').datepicker({
          numberOfMonths: [2,3],                
          dateFormat: 'dd/mm/yy',
          beforeShowDay: highlightDays
      });
  
      function highlightDays(date) {
          for (var i = 0; i &lt; dates.length; i++) {
              if (dates[i] == date) {
                            return [true, 'highlight'];
                    }
            }
            return [true, ''];
  
   }   
  
  });
   &lt;/script&gt;
  </code></pre>
  
  <p>my CSS is:</p>
  
  <pre><code>#highlight, .highlight {
      background-color: #cccccc;
  }
  </code></pre>
  
  <p>Well the calendar comes up, but there is nothing highlighted. Where is the problem in my code?
  If anyone could help that would be great.</p>
  
  <p>Another option/solution could be: disable all dates, but make available only dates in an array.</p>
  
  <p>Thanks!</p>