title: jQuery Datepicker error - n is undefined
body: <p>I'm using the jQuery Datepicker on a form where the fields are hidden and you click on a link to edit the value. </p>
  
  <p><code>&lt;a class="pickDate edit-link" id="reqSubmitDate"&gt;Thu, Feb 27, 2014&lt;/a&gt;</code></p>
  
  <p><code>&lt;input type="hidden" value="Thu, Feb 27, 2014" id="reqSubmitDateinput" name="RequisitionSubmitDate" class="hasDatepicker"&gt;</code></p>
  
  <p>I have the datepicker initiated on the hidden input.</p>
  
  <p><code>$('#reqSubmitDateinput, #orderAckDateinput, #deliveryDateinput').datepicker();</code></p>
  
  <p>You click the link and it opens the datepicker for its matching input.</p>
  
  <pre><code>$('.pickDate').click(function () {
      var id = $(this).attr('id');
      var input = id + 'input';
      $('#' + input).datepicker('show');
  });
  </code></pre>
  
  <p>Then it uses the defaults I've set to take the date the user picks and put set the value of the hidden input.</p>
  
  <pre><code>$.datepicker.setDefaults({
      minDate: 0,
      onSelect: function (date) {
          var id = $(this).attr('id');
          id = id.slice(0, -5);
          $('#' + id).text(date);
      }
  });
  </code></pre>
  
  <p>It seems to work fine on the first two but doesn't work on the last though only the IDs are different and fit the same format. I get:</p>
  
  <p><code>TypeError: n is undefined        jquery.....min.js (line 5)</code></p>
  
  <p>It seems to stop at showing the picker.</p>
  
  <p>I tried moving the first two around after the one that doesn't work to see if it was an issue with how many there are and that wasn't it. I also tried moving the non-working one near the others. No luck.</p>
  
  <p>jsfiddle as requested: <a href="http://jsfiddle.net/ZGD6B/" rel="nofollow">http://jsfiddle.net/ZGD6B/</a></p>