Hi Nratz83 ,
As per your query i understand that you are looking to for loop an array or collection..please find the below block of code..may it help you..
Put it in your script block and check..
$(document).ready(function () //this function is needed to display on page load..
{
var test = new Array(); //declare an empty array
var test = new Array("Ravi", "Ramesh", "Rockesh"); //assign values to it
$.each(test, function (i) //for loop an array here i=index of an array
{
alert(test);
})
});
Thanks & Regards,
Ravindra M
(Success Always Depends on Dedication & Commitment)
Nratz83, if this helps please login to Mark As Answer. |
Reply | Alert Moderator