Click to See Complete Forum and Search --> : Visible/Invisible Controls on my page ??????
msnhari
June 15th, 2000, 01:20 AM
How to make the controls visible and invisible where are placed on the same form ?I have a combo box which has to be shown or hidden depending on the user action. How to do it ?????
Hand in Hand we Walk towards SUCCESS.
Lothar Haensler
June 15th, 2000, 01:25 AM
each control has a Visible property that you can set (to True/False) at runtime.
So, depending on the user action set the combo's visible property to False/True.
Lothar Haensler
June 15th, 2000, 01:45 AM
wait a minute. your subject says "on my page"...
on an HTML page you would set the visibility property:
<input type="text" value="test" id="test">
<input type="button" onclick="document.all.test.style.visibility='hidden';">
...to hide a "control"...
you could also set ...style.display = "none" (with different results, though)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.