Solved

Div or Span with Visibility or display

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Finding (and replacing) text between two strings in Php 7 50
CSS measurement 10 34
HTML File in SharePoint 2013 Library 4 47
Bootstrap more than 12 columns in row 3 37
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" …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
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 …

912 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

17 Experts available now in Live!

Get 1:1 Help Now