title: my first jQuery slider I need some advice please
body: <p>I am trying to build my own customer slider from scratch, I got very very BASIC knowledge of jQuery.</p>
  
  <p>What I am trying to accomplish is the following: I would like to build a slider with paragraphs with testimonials. My controls will be "next" and "prev", however I would like to do this dynamically. I have no idea how many paragraphs I will have since they are pulled out of the DB. So it could be 1 or 10, that is my problem. I managed to show() and hide() my divs on click but that is all. </p>
  
  <p>Here is my basic code:</p>
  
  <p><strong>jQuery</strong></p>
  
  <pre><code>$("#testimonials").ready(function(){
  
  $("#1").show();
  $("#2").hide();
  $("#3").hide();
  
    $("#next").click(function(){
       $("#1").hide();
       $("#2").show();
                      });
  
    $("#prev").click(function(){
       $("#2").hide();
       $("#1").show();
                      });
  
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="testimonials"&gt;
     &lt;div id="1" class="active-slide"&gt;
         &lt;p&gt;This is paragraph one&lt;/p&gt;
     &lt;/div&gt;
     &lt;div id="2" class="inactive-slide"&gt;
         &lt;p&gt;This is paragraph two&lt;/p&gt;
      &lt;/div&gt;
      &lt;div id="3" class="inactive-slide"&gt;
          &lt;p&gt;This is paragraph three&lt;/p&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am open for any suggestion or if someone know a good tutorial to read to accomplish this.</p>
  
  <p>Would it be better if I used UL and try getting "next" by looking for child? I'm sort of brain dead at the moment and can't seem to figure out how to accomplish this?</p>
  
  <p>Thanks in advance</p>