title: Two radio buttons share one "id"?
body: <p>I'm borrowing/adapting this simple html/javascript form set up to put some data in the database. The original code uses text fields in the form, but I'm using radio buttons. The first three steps below are the original, and my question comes after...namely, do I give the radio buttons the same id...Hope this is clear...</p>
  
  <p>Step 1. User enters value into form with id "nick"      </p>
  
  <pre><code>&lt;tr&gt;  
      &lt;td&gt;&lt;label&gt;User&lt;/label&gt;&lt;/td&gt;  
      &lt;td&gt;&lt;input class="text user" id="nick" type="text" MAXLENGTH="25" /&gt;&lt;/td&gt;  
  &lt;/tr&gt;  
  </code></pre>
  
  <p>Step 2. Value associated with id "nick" assigned to variable using id</p>
  
  <pre><code>var inputUser = $("#nick");  
  </code></pre>
  
  <p>Step 3. getting the value from the variable for insertion into database...</p>
  
  <pre><code>if(inputUser.attr("value")
  </code></pre>
  
  <p>but if it's two "radio buttons" rather than one "text" field....     </p>
  
  <pre><code>&lt;td&gt;&lt;label&gt;Interview&lt;/label&gt;&lt;/td&gt;  
  &lt;td&gt;&lt;input type="radio" name="interview" id="nick" value="pass" /&gt;Pass&lt;/td&gt;
  &lt;td&gt;&lt;input type="radio" name="interview" id="nick" value="fail" /&gt; Fail&lt;/td&gt;
  </code></pre>
  
  <p>Do I give the radio buttons the same "id" so that it's still like this when I assign the value to the variable...</p>
  
  <pre><code>var inputUser = $("#nick"); 
  </code></pre>
  
  <p>so that whichever button is checked will be assigned found in the id "nick"?  </p>