Print Page | Close Window

JavaScript Question

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10536
Printed Date: 28 March 2026 at 2:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: JavaScript Question
Posted By: zMaestro
Subject: JavaScript Question
Date Posted: 20 May 2004 at 4:14am

I have a drop down Menu, and a text box.

the text box is by default hidden, the drop down menu has many values, and at the end others.
I want If the users chose others the textbox becomes visible.

How can this be done plz in JavaScript.

Thanks.




Replies:
Posted By: Semikolon
Date Posted: 21 May 2004 at 2:23pm
default: style="display: none"

onChange="element.style.display='block'"


you may want to place an If in the onchange to check the drop down value..


Note: this wont work in Mozilla/Netscape. may you could just disable the text box and enable it when the user selects others?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net