title: Is it possible to get values of items in adjacent table rows with Javascript?
body: <p>I have items in a table like this</p>
  
  <pre><code>&lt;td&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input class="form-control" value="$title"&gt;&lt;/td&gt;
  &lt;td&gt;&lt;textarea name="Text1" cols="40" rows="5"&gt;$tdesc&lt;/textarea&gt;&lt;td&gt;
  &lt;td&gt;&lt;a href="#savems" class="svMS btn btn-primary btn-lg" id="33334"&gt;Save&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I am using the following javascript to get the ID of the button that is clicked. </p>
  
  <pre><code>$("a[href=#savems]").click(function() {
      var id;
      if ($(this).hasClass('svMS')) {
          var id = $(this).attr("id");
          console.log(id);
      }
  }
  </code></pre>
  
  <p>I wish to send the other table items to a server for processing, is there a way in javascript to select the corresponding items?</p>