Here\'s what I\'m trying to do:
Currently I am using this to create an array of all elements matching the class name of .cookie. Right now I am getting
.cookie
You can try:
var cookiesArray = []; $('.cookie').each( function(i,e) { /* you can use e.id instead of $(e).attr('id') */ cookiesArray.push($(e).attr('id')); });