Loop list in jquery
<p>I have a list :</p>

<pre><code>public List&lt;Sale&gt; AllSales { get; set; }
</code></pre>

<p>And i would like to loop it in jquery :</p>

<pre><code> $(document).ready(function() {

            for (var i = 0; i &lt; &lt;%= AllSales %&gt;; i++) {
                 alert("test");
            }

         });
</code></pre>

<p>But i am not getting any alerts or anything, what am i doing wrong?</p>
