title: How to add a button on a inline datepicker of jQueryUi
body: <p>function beforeShow  doesn't work on a inline datepicker.How to add a additional button on the panel?</p>
  
  <pre><code>beforeShow: function(input) {  
                  setTimeout(function() {  
                  var buttonPane = $(input).datepicker("widget").find( ".ui-datepicker-buttonpane" );  
                  var btn = $('&lt;button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button"&gt;Clear&lt;/button&gt;');  
                  btn.unbind("click").bind("click", function () {  
                      $.datepicker._clearDate( input );  
                  });  
  
                  btn.appendTo( buttonPane );  
  
                  }, 1 );  
              } ,
  </code></pre>
  
  <p>Thanks for any answer.</p>