title: Make currentText Button Close Datepicker
body: <p>I'm trying to make the currentText button close the datepicker popup when clicked. Right now I'm trying</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('body').on('click', '.ui-datepicker-current', function() {
    
    $('#ui-datepicker-div').hide();
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>But it's not alerting or anything. I'm not sure how to select it. I used another normal button to test it and it did close the datepicker.</p>