Solved

Div or Span with Visibility or display

Posted on 2000-04-17
2
117 Views
Last Modified: 2010-04-09
I want to switch between two controls.

one is a select option and the other is text.
I the user click on a button it should hide the text and show the select option for the user to select something from.  But I want it to be on one row.

Ex.

if this 'x' is the text then I want to show 'y' for the select option to be displayed on top of x (hiding or disabling x)?

Also, which of the combination works with doing something like this between the div/span with visibility or display styles

Using IE 4 and 5
Thanks
0
Comment
Question by:eric07
2 Comments
 
LVL 1

Accepted Solution

by:
ManoloMA earned 20 total points
ID: 2725543
May be with this:

<SCRIPT>
function disapear(){
 x.style.display = 'none';
 y.style.display = 'block';
}
</SCRIPT>

<INPUT type="text" id="x">
<SELECT STYLE="display: none" id="y">

<option> ..... </option>

</SELECT>

<INPUT TYPE="button" value="View Select" onclick="disapear()">
0
 

Author Comment

by:eric07
ID: 2729529
Thanks allot.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 29
Search box won't work. 22 25
Fire Fox doesn't show calendar on html page ? 5 47
Bootstrap Columns not Side-by-Side 3 12
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now