title: Read HTML array using javascript or jQuery
body: <p>I have array element in HTML</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;input type="checkbox" value="Value1" name="model[settings][]"&gt;
  &lt;input type="checkbox" value="Value2" name="model[settings][]"&gt;
  &lt;input type="checkbox" value="Value3" name="model[settings][]"&gt;
  </code></pre>
  
  
  
  <p>I am reading all the HTML input, iterating it and building a hash in the javascript. But this will read the array element and only pick the last model[settings][] element.</p>
  
  <pre class="lang-js prettyprint-override"><code>var inputs = jQuery(" :input", "#elementID");
  </code></pre>
  
  
  
  <p>Is there a way in jQuery or JavaScript to read and build an array variable in javascript which then can be passed to controller ? </p>
  
  <p>Thank You</p>