title: how to iterate through a select object array
body: <p>i've a few select's with a array as the name attrib.
  This select can have multiple different values in different parts of the html, so i want to iterate through the values of the stored items in the name array.</p>
  
  <p>i've google for a few time and didn't find a good answer (also here in stack...), but does anybody know how can i iterate through the values of the select array with jquery if possible or js if not?
  I try this but did not work </p>
  
  <p>Jquery code :</p>
  
  <pre><code>// i get the name of the select correctly
  var itemName = $(this).find("select#selectToONE").attr("name");
  
  // try to iterate through the values when the array grows... not work
  $("select[@name='"+itemName+"[]']").each(function() { alert($(this).val());} );
  </code></pre>
  
  <p>Here some html code maybe inside in one TR,TD :</p>
  
  <pre><code>&lt;select name="To[itemsONE][]" id="selectToONE"&gt; 
  &lt;option&gt;....&lt;/option&gt;
  &lt;option&gt;....&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Other select inside other TR,TD</p>
  
  <pre><code>&lt;select name="To[itemsONE][]" id="selectToONE"&gt;
  &lt;option&gt;....&lt;/option&gt;
  &lt;option&gt;....&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Thanks.</p>