title: Getting ID of all elements of a certain class into an array
body: <p>Here's what I'm trying to do:</p>
  
  <p>Currently I am using this to create an array of all elements matching the class name of <code>.cookie</code>. Right now I am getting the text value of that element, which is not what I need:</p>
  
  <pre><code>var getAllCookies = $('.cookie').text();
  var cookiesArray = jQuery.makeArray(getAllCookies);
  alert(cookiesArray[0]);
  </code></pre>
  
  <p>What I need is to find all elements of a certain class (.cookie), get that element's ID value and store that ID value inside of array. </p>