Solved

Div or Span with Visibility or display

Posted on 2000-04-17
2
126 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

738 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