Solved

Div or Span with Visibility or display

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

Industry Leaders: 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

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 …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

695 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