title: jquery datepicker does not work on appended elements
body: <p>I am trying to make all original and appended elements as a date picker but only the original works</p>
  
  <p>I tried this code but next line of inputs appears just as a normal input not a jquery datepicker hope you can find a solution thanks.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;script type="text/javascript"&gt;
  
  
  $(document).ready(function(){
  
      $(".inputdate").datepicker({
  
  
      });
  
      $(".samplebtn").click(function(){
  
          $(".samplediv").append("&lt;input class='inputdate' type='text' name='date'&gt;");
  
      });
  
  });
  
  &lt;/script&gt;
  
  &lt;body&gt;
      &lt;div class="samplediv"&gt;
          &lt;input class="inputdate" type="text" name="date"&gt;
      &lt;/div&gt;
      &lt;button class="samplebtn"&gt;Add&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>