title: JQuery-Validation - using rules method on selected ID, why does the name attribute have to be present on the element?
body: <p>I'm a little confused about the <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">JQuery validation plugin</a> behavior.</p>
  
  <p>If I have the following JQuery:</p>
  
  <pre><code>$('#form1').validate({
      /* other validation */
  });
  
  $('#txt1').rules("add",
  {
      required: true,
      messages: { required: 'This is required!' }
  });
  </code></pre>
  
  <p>and the following text input, with an id but no name attribute:</p>
  
  <pre><code>&lt;input type="text" id="txt1"/&gt;
  </code></pre>
  
  <p>No required message pops up on the text box.</p>
  
  <p>However, if I add a name attribute:</p>
  
  <pre><code>&lt;input type="text" id="txt1" name="anything"/&gt;
  </code></pre>
  
  <p>It validates it just fine.</p>
  
  <p>Why is that?  Since I'm using the <a href="http://docs.jquery.com/Plugins/Validation/rules#.22add.22rules" rel="nofollow">rules("add", rules) method</a> on an ID selector, why does it need the name attribute present in order to associate rules to the element?  Thanks for any insight!</p>