title: How to get the values from all input elements inside a <tr> element using JQuery
body: <p>How do I get all the input elements in one row in my form? 
  For example, in the code snippet below, I have a checkbox and a text input box. I want to get the values of both these input types and display them to the user in the next td element containing the div id="hist" element.</p>
  
  <pre><code>   &lt;tr&gt;&lt;td&gt;Head&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="headH" id="headH" &gt;&lt;/td&gt;
              &lt;td&gt;&lt;input class="NA" type="checkbox" name="headNA" id="headNA" value="N/A"&gt;&lt;/td&gt;
              &lt;td&gt;&lt;div class="hist"&gt;&lt;/div&gt;&lt;%=Utils.getMeasurementsCreateDiv1("Head","H",num) %&gt;
              &lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;Neck&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="neckH" id="neckH" &gt;&lt;/td&gt;
              &lt;td&gt;&lt;input class="NA" type="checkbox" name="neckNA" id="neckNA" value="N/A"&gt;&lt;/td&gt;
              &lt;td&gt;&lt;div class="hist"&gt;&lt;/div&gt;&lt;%=Utils.getMeasurementsCreateDiv1("Neck","H",num) %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;UE&lt;/td&gt;
              &lt;td&gt;&lt;input type="text"name="uEH" id="uEH"&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input class="NA" type="checkbox" name="ueNA" id="ueNA" value="N/A"&gt;&lt;/td&gt;
              &lt;td&gt;&lt;div class="hist"&gt;&lt;/div&gt;&lt;%=Utils.getMeasurementsCreateDiv1("UExt","H",num) %&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Also I have a 5 radio buttons and a text input box attached to it. These are all not on the same row but I want to get the value of the "pain1" element and the "cerCommentH" element and display it. Please note that the below is just a code snippet. I have several such elements in my form so I can't work with them individually using their "id".</p>
  
  <pre><code>   &lt;tr&gt;
              &lt;td&gt;Mech&lt;/td&gt;
              &lt;td&gt;
                  &lt;input type="radio" name="pain1" value="Pain a"&gt;Pain a
                  &lt;input type="radio" name="pain1" value="Pain b"&gt;Pain b
  
              &lt;/td&gt;&lt;/tr&gt;  
              &lt;tr&gt;&lt;td&gt;&lt;/td&gt;
              &lt;td&gt;
                  &lt;input type="radio" name="pain1" value="Pain c"&gt;Pain c  
                  &lt;input type="radio" name="pain1" value="Pain d"&gt;Pain d
                  &lt;input type="radio" name="pain1" style="display:none;" value=""&gt;
                  &lt;input type="button" value="Clear" onclick="document.history.pain1l[4].checked = true;"&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;div class="hist"&gt;&lt;/div&gt;&lt;%=Utils.getMeasurementsCreateDiv1("Cehi","H",num) %&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="radio" name="pain1" value="Other"&gt;Other
                  &lt;input type="text" name="cerCommentH" id="cerCommentH"&gt;
              &lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>Thanks in advance for your help.</p>