Click to See Complete Forum and Search --> : dynamically show don't show form elements


jitseschaafsma
09-10-2003, 01:36 AM
is it possible with javascript to show / do not show a form element.

For example i have a <select name="projects"> </select>

now i would like to write a javascript that depending on some other variable displays this select box or not display the select box to the user.

I do not mean disable but really mean show it in the browser.

I do not want to reload the whole page.

Any suggestions (frames maybe ?)
Thanks Jitse

Fang
09-10-2003, 02:22 AM
This was done here (http://forums.webdeveloper.com/showthread.php?s=&threadid=17083)
Khalid's solution makes the element invisible, but still in the document flow -visibility.
My solution takes the element out of the document flow -display (no empty space where the element used to be).

jitseschaafsma
09-10-2003, 04:55 AM
so obvious and so unseen by me.
Thanks