in an ASP.NET/C# application, I have a list (or array) of controls (for example textboxes) declared and added in the code behind.
List<TextBox> LstOfBoxes = new List<TextBox>();
I want to use Javascript to change the visibility of all the controls in the list (or array).
I know that if i want to change the visibility of 1 textbox I use this:
document.getElementById("<%=TextBox1.ClientID %>").style.display = 'none';
But how to loop through all the list (or array), get the ids of each control and change the display to 'none'
Thanks a lot.