javascript global array problem
<p>consider a scenario</p>

<p>I have javascript array which is declared as global</p>

<p>for instance:</p>

<pre><code> var globalarray=new Array();
</code></pre>

<p>next I have two multiple select boxes </p>

<ul>
<li>selectboxa </li>
<li>selectboxb </li>
</ul>

<p>all the option values inside selectbox are dynamic, 
if I select multiple values from both selectboxa and selectboxb. I collect the selected values in global array.</p>

<p>Important: if I choose values  from  either selectboxa or selectboxb no problem but if I select alternatively from selectboxa and selectboxb  it creates a problem</p>

<p>problem: While saving I collect selected values from array, If I select 4 values from selectboxa and next 3 values from selectbox b like this alternatively I change and finally it contains all values as per global array, but I don't want like that using only one global array and get selectboxa values separately and selectbox b  values separetely at same time it is possible.</p>

<p>If any doubts please me ask me.</p>
