title: Jquery datepicker How set class when onSelect date?
body: <pre><code>$("#datepicker").datepicker({
              beforeShowDay: function(date)
              {
                  ....
              },
              onSelect: function(date) {
                  alert(date);
  
                      $(this).addClass('ui-state-custom'); //try one - not work
                      return[true, "ui-state-custom", "closed"]; //try two - not work
                  }
  
              }
  
              });
  </code></pre>
  
  <p>I would like set class <code>ui-state-custom</code> when <code>onSelect</code> date (not <code>beforeShowDay</code> !).</p>
  
  <p>Tell me please how make it?</p>