JQuery get element from a string problem
<p>Sorry for such a simple question but I can't seem to find the solution.</p>

<p>I am trying to fade in and out some divs.</p>

<p>Divs have an ID of "div1", "div2", "div3".</p>

<p>My code is:</p>

<pre><code>var Divs = new Array("div1", "div2", "div3");
</code></pre>

<p>I want to fade out one div and then fade in the next on top of it.</p>

<p>I have a setinterval that runs every 5 seconds and checked it works.</p>

<p>Inside it is this code:</p>

<pre><code> $(Divs[1]).fadeOut(1000);
 $(Divs[2]).fadeIn(1000);
</code></pre>

<p>However nothing happens when the timer method is ran. Any ideas?</p>
