store array jquery code example
Example: store data in array jquery
var arr = [];
i = 0;
$('#cover div').each(function()
{
alert($(this).attr('id'));
arr[i++] = $(this).attr('id');
//I should store id in an array
});
var arr = [];
i = 0;
$('#cover div').each(function()
{
alert($(this).attr('id'));
arr[i++] = $(this).attr('id');
//I should store id in an array
});