how to access arraylist sent from server in Javascript
<p>I have a requirement of displaying a <code>dropdown</code> list based on the <code>arraylist</code> being sent from the server on certain conditions  on load of the page and on change of the event
For example 
<code>ArrayList1</code>,<code>ArrayList2</code></p>

<pre><code> if(condition is true)

 display the contents to dropdownlist from arraylist1

else

 display the contents to dropdownlist from arraylist 2
</code></pre>

<p>Can any one tel how this arraylist can be saved on the page as hidden field so i can access the same in javascript.
??</p>
