Make a bar being full every 15 seconds
<p>I was trying to make a sort of loading bar, I've made this but it won't work... Who can help me??</p>

<pre><code>&lt;div id="loader" style="height: 2px; width: 0px; background: green;"&gt;
Test
&lt;/div&gt;
&lt;script&gt;
$('#loader').animate({width:'100px'}, 15000);
&lt;/script&gt;
</code></pre>

<p>Thank you!</p>

<p>Edit:
This one's working</p>

<pre><code>&lt;div id="loader" style="height: 2px; width: 0px; background: green;"&gt;
&lt;/div&gt;
&lt;script&gt;
$(document).ready(function(){
    function loader(){$('#loader').animate({width:'0px'}, 1).animate({width:'468px'}, 15000, function() {loader()});}
    loader();
});

&lt;/script&gt;
</code></pre>

<p>Thanks to Pahnin</p>
