title: Selecting only one element with jQuery
body: <p>I've got a table with a number of items. I'm trying to show input fields when a user clicks on an edit button, but I don't know how to select only the element within the same row as the edit button. Here's the table structure:</p>
  
  <pre><code>&lt;table&gt;
  
      &lt;tr class="table-row"&gt;
          &lt;td&gt;
            &lt;a href="#" class="item-name"&gt;Item 1&lt;/a&gt;
            &lt;input type="text" value="[item]" class="input-item" id="item-1"&gt;
          &lt;/td&gt;
          &lt;td&gt;
            &lt;a href="#" class="item-name"&gt;Price 1&lt;/a&gt;
            &lt;input type="text" value="[item]" class="input-item" id="price-1"&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;a href="#" class="edit-button"&gt;Edit&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr class="table-row"&gt;
          &lt;td&gt;
            &lt;a href="#" class="item-name"&gt;Item 2&lt;/a&gt;
            &lt;input type="text" value="[item]" class="input-item" id="item-2"&gt;
          &lt;/td&gt;
          &lt;td&gt;
            &lt;a href="#" class="item-name"&gt;Price 2&lt;/a&gt;
            &lt;input type="text" value="[item]" class="input-item" id="price-2"&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;a href="#" class="edit-button"&gt;Edit&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  
      ...
  
  &lt;/table&gt;
  </code></pre>
  
  <p>What I intend to happen, is that when the user clicks on the <code>Edit</code> link within a specific row, the input fields will appear (in the 1st and 2nd columns) and the text will disappear, allowing the user to edit from the table itself. Problem is, the jQuery code I have (obviously) selects all the <code>.input-item</code> classes, thus showing all the inputs from all the rows.</p>
  
  <pre><code>$('.edit-button').click(function(event){
    $('.input-item').show();
  });
  </code></pre>
  
  <p>How do I use jQuery to select only the inputs within the <code>.table-row</code> of the clicked <code>Edit</code> link?</p>