title: How to pick individual Divs from While loop with JavaScript?
body: <p>Ok, so Iv got a while loop that will display loads and loads of results and iv got it so that there is a button to the side of each result which says "display more".  So when I click display more Iv got some javascript that will "FadeIn()" the rest of the result.
  I have done this before when there was only one result on the page, but now iv got loads of results, so how do I identiy just the one that iv clicked.  Here is the JavaScript I currently Have</p>
  
  <pre><code>var command = false;
  function slideup() { //New function SlidUp
      if (command == false){
           $('#full_result').fadeIn();
           $('#more').text('Display More');
           command = true;
      }else{
           $('#full_result').hide();
           $('#more').text('Display Less');
           command = false;
      }
  }
  </code></pre>
  
  <p>So this works fine if there is one result on the page.  But How would I identify each result seperatly.  Here is the code I have to display my results...</p>
  
  <pre><code>&lt;table id="browsedata" border="0"&gt;
      &lt;tr&gt;
          &lt;td colspan="2" width="90%" class="quest"&gt;&lt;?php echo $row_condition['data']; ?&gt;&lt;/td&gt;
          &lt;td rowspan="2" class="viewit"&gt;&lt;a id="more" href="#" onClick="slideup()"&gt;Display More&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td class="questiondetail"&gt;Added by: &lt;?php echo $row['username']; ?&gt;&lt;/td&gt;
          &lt;td class="questiondetail" width="30%"&gt;Date Added: &lt;?php echo $dd."/".$mmm."/".$yyyy ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="3"&gt;
              &lt;div id="full_result"&gt;
                  &lt;!-- Full Result will be displayed here --&gt;
              &lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>So that will be repeated for each result, so when I click the "Display More" button, how do I make the JavaScript run just on that result and not the others?</p>
  
  <p>Thanks</p>