title: jQuery datepicker gets the class 'hasDatepicker' but doesn't show the datepicker
body: <p>Im trying to add a datepicker to a form on a wordpress website.
  Datepicker doesn't show up but it does give the class 'hasDatepicker' to my element. Any idea on why it would not show the datepicker ?</p>
  
  <p>Edit:</p>
  
  <pre><code>jQuery(document).ready(function ($) {
      $('[id*="datepicker"]').each(function(){
          $(this).datepicker();
      });
  });
  </code></pre>
  
  <p>scripts are enqueued in the theme</p>