title: How to loop an array on jquery
body: <p>I've been trying to make a script to change the text of a span. </p>
  
  <p>Admittedly I'm not fantastic with jQuery and have found a script. I've edited i but i cannot get the script to loop and i don't know where to even start. Any code hints or links to relevant documentation would be greatly appreciated. </p>
  
  <p>Here's the jQuery so far:</p>
  
  <pre><code>function change() {
          $('#msg').html(options.pop()).fadeIn(750).delay(2000).fadeOut(750, change);
  };
  
  var options = [
      "Red Bull",
      "Smoke",
      "Babes",
      "css",
      "batman"
  ].reverse(); 
  change();
  </code></pre>
  
  <p>And on jsfiddle: <a href="http://jsfiddle.net/5s8y3/214/" rel="nofollow">http://jsfiddle.net/5s8y3/214/</a></p>