Loop list in jquery

u2ns

New Member
I have a list :\[code\]public List<Sale> AllSales { get; set; }\[/code\]And i would like to loop it in jquery :\[code\] $(document).ready(function() { for (var i = 0; i < <%= AllSales %>; i++) { alert("test"); } });\[/code\]But i am not getting any alerts or anything, what am i doing wrong?
 
Back
Top