Solved

Div or Span with Visibility or display

Posted on 2000-04-17
2
121 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML Relative path 9 32
Are there any non javascript based chart/graph solutions? 14 31
Python - desktop use 1 32
Index on a Table 6 12
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 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