Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #data #array #jquery
ADD COMMENT
Topic
Name
5+8 =