Hiding Combo box controls generically using JavaScript
I am trying to write a bit of javascript that will hide a html combo box control. I know that you can use
<code>
ControlName.style.display = 'block'
ControlName.style.display = 'none'
</code>
however I want to say something like:
<pseudocode>
For Each control in htmlpage.Controls
if control.Type = htmlComboBox
control.style.display = 'none'
end if
next
</pseudocode>
(Sorry for the VB type psuedo! VB is better for pseudocoding!)
Therefore, whenever the code is excuted, all of the Combo Box controls on the page will be hidden.
Thankyou in anticipation,
Alan C

