/    Sign up×
Community /Pin to ProfileBookmark

Hiding form object

I am trying to hide my input form when my drop down menu goes over it so that the input form does not show in the middle of my drop downs. It seems it always gives me a rectangular hole (where the input is located) in my drop downs whenever the drop down goes over the input form. It is like the input form is the top layer and I can not get it to hide. I am using Netscape 4.

<form action=”form.html”>
<input type=”text” name=”myname” id=”myname”>
</form>

I tried in my pop up function:

document.myname.visibility=”hidden”;

Doesnt seem to work. Any suggestions?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisFeb 11.2003 — You cannot hide individual elements of forms in NS 4. You would have to enclose the entire form inside a layer and hide the layer.

[font=monospace]<ilayer id="l1">

<form action="form.html">

<input type="text" name="myname" id="myname">

</form>

</ilayer>[/font]

Then in the pop up function:

[font=monospace]if(document.layers)

{document.l1.visibility = "hide";}[/font]
Copy linkTweet thisAlerts:
@floridaauthorFeb 11.2003 — Thank you for solving my problem! Now I need to see if it works with select boxes. Many thanks!!
×

Success!

Help @florida spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...