title: Assigning select list values to array
body: <p>I have an array initialised in script</p>
  
  <pre><code>var listarray = new Array(); 
  </code></pre>
  
  <p>And have a dynamically created select list ---</p>
  
  <pre><code>&lt;select multiple size=6 width=150 style="width:150px" name="ToLB" &gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>My question is how to assign all values of select list to the array.
  Thanks in advance.</p>