I have an array in jquery i want to print these elements using jquery each funtion
$(function () {
var myArray = ["one", "two", "three", "four", "five"];
});
thanks in advance...
I have an array in jquery i want to print these elements using jquery each funtion
$(function () {
var myArray = ["one", "two", "three", "four", "five"];
});
thanks in advance...
try this..
$(function () {var myArray = ["one", "two", "three", "four", "five"];
$.each(myArray, function (index, value) {
console.log(value);
});
});
hope it helps you..