title: Get element attribute from array
body: <p>The objective is to create multiple sliders on the page by linking the slider to something. The slider must be activated by clicking or hovering the slider anchor. <code>sliderList</code> would be a array for making this process easier so i wouldn't have to link each other manually on the configs js file.</p>
  
  <p>I need to get the attribute value from a element that is inside an array. In this case, <strong>holder</strong> is the array from where I want to extract the attribute value from the current array element. I tried doing this:</p>
  
  <pre><code>var holder = $('[slider-select]');
  
  for (var i = 0; i &lt; holder.length; i++) {
      var sliderList = $('[slider-target='
          +holder[i].attr('slider-select')
          +']');
  }
  </code></pre>
  
  <p>It looks like <strong>+holder[i].attr('slider-select')</strong> isn't working. I'm learning JavaScript/Jquery and it's crazy how things goes wrong even when it makes all sense, lol. Let me know if I wasn't clear enough.</p>