title: JQuery UI datepicker: how to bind an event AFTER the calendar was rendered?
body: <p>I am using <a href="http://jqueryui.com/demos/datepicker/" rel="noreferrer">datepicker</a>. The usual way to bind an event, lets say for example, <code>beforeShowDay</code>, would be:</p>
  
  <pre><code>$('.selector').datepicker({
     beforeShowDay: function(date) { ... }
  });
  </code></pre>
  
  <p>What I need is to bind the <code>beforeShowDay</code> event after the calendar was rendered. So, let's say first I render the calendar:</p>
  
  <pre><code>$('.mySpecialContainer').datepicker({
     //in this moment, for some reason, I am not allowed to bind nothing (that's not me who renders the calendar, that's why I am not allowed)
  });
  </code></pre>
  
  <p>And then, if I try to bind something in the usual way:</p>
  
  <pre><code>$('.mySpecialContainer').datepicker({
     beforeShowDay: function(date) { ... }
  });
  </code></pre>
  
  <p>The calendar will be - of course - rendered again inside <code>'.mySpecialContainer'</code>, instead of just binding the event. I have tried:</p>
  
  <pre><code>$('.mySpecialContainer').bind('beforeShowDay', function(date) { ... });
  </code></pre>
  
  <p>But that was just a desperate action :)</p>