ASP.NET Get the Ids of each control in a list of controls using javascript
<p>in an ASP.NET/C# application, I have a list (or array) of controls (for example textboxes) declared and added in the code behind.</p>

<pre><code>List&lt;TextBox&gt; LstOfBoxes = new List&lt;TextBox&gt;();
</code></pre>

<p>I want to use Javascript to change the visibility of all the controls in the list (or array).</p>

<p>I know that if i want to change the visibility of 1 textbox I use this:</p>

<pre><code>document.getElementById("&lt;%=TextBox1.ClientID %&gt;").style.display = 'none';
</code></pre>

<p>But how to loop through all the list (or array), get the ids of each control and change the display to 'none'</p>

<p>Thanks a lot.</p>
