title: jQuery Datepicker for multiple inputs
body: <p>I have a jQuery datepicker script:</p>
  
  <pre class="lang-js prettyprint-override"><code>$(function() {
      $( "#datepicker" ).datepicker({ dateFormat: "yyyy-mm-dd" });
  }); 
  </code></pre>
  
  <p>When I want to initialize this script for two inputs, it works only for the first one. How to use it for both inputs?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="text" name="MyDate1" id="datepicker"&gt;
  &lt;input type="text" name="MyDate2" id="datepicker"&gt;
  </code></pre>