for loop, failed to load given URL
<p>I'm new to js, and I'm playing about with a for loop that places images into a #div using .append()</p>

<p>totalSlides is a dynamic int and can change, I want to display the same amount of images as the number of totalSlides.</p>

<p>I'm pretty sure the for loop logic is correct, but for some reason the images are not displaying. When i inspect in firebug i get the error "failed to load given url". I know that that url is correct, i have even tried the full url path C:/complete/folder/path etc..</p>

<p>I'm sure it's an easy fix that i should get but for now i just can't see why it won't load my images.</p>

<pre><code>for(i=0;i&lt;totalSlides;i++){ // Loads all number images into html
    $('#numbers').append("&lt;img src='images/numbers/number"+i+".png'/&gt;");
};
</code></pre>

<p>Thanks in advance.</p>

<p>Jase</p>
