title: I can't figure out how to click through an array
body: <p>I've searched up and down google and haven't found a simple solution.</p>
  
  <p>Here is the jist of my code:</p>
  
  <pre><code>  var theArray = ["one","two","three","four"];
  
  
    $('.next').click(function(){
     // go forward on the array
    })
  
    $('.back').click(function(){
     // do backwards on the array from the current position
    })
  </code></pre>
  
  <p>so, if the user clicks on <code>"&lt;button class="next"&gt;</code> I would get an alert of "one", they click on "next" again,  an alert of "two", etc...</p>
  
  <p>Is there a quick way to do this?</p>