Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
WebMaskedEdit control hide/display through js
posted

I have a webmaskededit control and a dropdownlist control on my page, one of which is displayed based on the selection of another dropdownlist.

I have them both hidden on initial load with style="display:none;".

In my javascript I set the values

...

if(condition)

{

dropdownlist.style.display = '';

webmaskededit.style.display = 'none';

}

else

{

dropdownlist.style.display = 'none';

webmaskededit.style.display = '';

} ...

 this works fine for the dropdownlist but not the webmaskededit control.

How can I show/hide the control with javascript?