Show mu;tiple DIV contents in a page

Show mu;tiple DIV contents in a page

Hi All;

I want to show the content of forms like this. A drop down list having options say A,B,C. on selecting an option, it should display 1 div out of 3 div contents. 1st div tag contains 1 text box, 2nd div tag contains 2 text boxes, 3rd div tag contains 3 text boxes,

i did that using

function toggle(show)

    {
        if (this.currvisible) {
        document.getElementById(currvisible).style.display = 'none';
    }
    if (show)
    {
        document.getElementById(show).style.display = '';
        this.currvisible = show;
    }

Now i added one more dropdown list having options D,E,F. on selecting an option, it should display 1 div out of 3 div contents. 4th div tag contains 4 text box, 5th div tag contains 5 text boxes, 6th div tag contains 6 text boxes,

when i chose one option of 1st drop down list, it works fine, and when i select an option from 2nd drop down list THE DIV content that was previously displayed will hide...

CAN ANY ONE SUGGEST ME WHAT I CAN DO????

THANKS IN ADVANCE.

with warm regards,

Anoop Pete,

View Answers









Related Tutorials/Questions & Answers:
Show mu;tiple DIV contents in a page
Show mu;tiple DIV contents in a page  Hi All; I want to show.... on selecting an option, it should display 1 div out of 3 div contents. 1st div tag... 1 div out of 3 div contents. 4th div tag contains 4 text box, 5th div tag
Jquery Hide and Show Div
() methods: Example: Show/Hide Div in jQuery <!DOCTYPE html> <html> <.... The jQuery show hide Div methods works just like the CSS display and block.ADS...Using jQuery effects one can perform lots of task such as Hide, Show, Toggle
Advertisements
loading page in div
loading page in div  how to load another web page in div?   <div name="iframe" id="iframe"></div> <iframe id="foo" name="foo" src="http://www.w3schools.com/"></iframe> //and in Javascript
Help with jQuery show hide div script - JSP-Interview Questions
Help with jQuery show hide div script  Hi guys, I have a jquery script for showing and hiding the content inside, between two divs, controlled with radiobuttons. I like to use the same jquery script for another group of divs
How to print contents of a web page in jsp?
How to print contents of a web page in jsp?  I have generated a pay slip using jsp.How do I print the contents of the slip
write Div in jsp page - JSP-Servlet
write Div in jsp page  How can i write Div class in jsp page?  Hi Viral Sonawala tag is a html tag, perform the same function in jsp as used in html. Example: This is a header This is a paragraph
display contents on the same page by selecting a radio button
display contents on the same page by selecting a radio button  Bill Amount Rs.<input type="text" name="amm"/> Bill Status: Pending<... on the same page under the radio button
how to divide 1 web page into some parts using div tag...
how to divide 1 web page into some parts using div tag...  how to divide 1 web page into some parts. i know it using frames in html,bt how can we do it in jsp. my friend told it can b done using div tag. i ve tried bt couldnt do
how to show hyperlink website on the same page
how to show hyperlink website on the same page  dear sir: i need to know how can you show a webiste on the same page. for example i want to show... on the same page weather it is left aligned or right. i read somewhere that you
How to get table row contents into next jsp page
contents in the next jsp page and display them Thanks Vikas   The given...How to get table row contents into next jsp page  Hi, I have a 30... will get shown in another page and allow the user to update the record. 1
show, hide, disable components on a page with struts - Struts
show, hide, disable components on a page with struts  disabling a textbox in struts.. in HTML its like disable="true/false" how can we do it in struts
Show image and text on same jsp page
Show image and text on same jsp page  Hi all, I have to display image and text on the same jsp page. The text and image are both retrived from mysql database. The image is shown correctly on seperate jsp page but when shown
JavaScript Hide Div
JavaScript Hide Div...; In this section, we are going to hide div element on clicking the button using the JavaScript. In the given example, we have created a div element using <div>
The PHP file_get_contents() function , file_get_contents php
as String  To show the contents of the file no need of loopADS_TO_REPLACE_2 Syntax...The PHP file_get_contents() Function Function reads the content of the whole file to a string. This function is the best way to read the contents
JavaScript move div
JavaScript move div...; This section illustrates you how to move a div element on the window using JavaScript. In the following code, we have defined a div element consisting of text
DIV in HTML
DIV in HTML  What is DIV in HTML
JavaScript getElementById div
JavaScript getElementById div... example we have used document.getElementById() method to get access to a div element... of getElementById() method on a div element. We have created a div with the id "
Show Hyperlink in HTML Page
Show Hyperlink in HTML Page   ... in HTML.The HTML code show you a HTML page, that create a link to another page... to show the url of the page to which hyperlink is written as the value
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
how to show effect (visual) on jsp page using value from database
how to show effect (visual) on jsp page using value from database  I am making a ticket booking system. I have a databse with a clumn "booking status" I am thinking to use a map of seats ( with pictures controllers as seats) What
Chmod 777 to a folder and all contents
Chmod 777 permission - Chmod 777 to a folder and all contents In this tutorial I am going to show you the use of the chmod command for changing the folder... of a directories.ADS_TO_REPLACE_2 How to Chmod 777 to a folder and all contents? Suppose you
How to align div side by side?
Example of aligning DIV side by side in HTML page In this tutorial I will explain you how you can align the div side by side using CSS. The CSS... div side by side?. If you are looking for the tutorial for aligning the DIV
Fetched Record from database show into text field of html page
Fetched Record from database show into text field of html page  hi, i..., and also have html page with all above mentioned field i have submit 20 record from... is that if i have a report page with same four above filed and i type any letter
How to Autogenerate of ID from database and show on JSP page?
How to Autogenerate of ID from database and show on JSP page?  ... increasin 1 in the previously stored tsk id) on JSP page when I click... it (in taskAction.java) that it auto generate tasksid in jp page when i click on Create_task.jsp
How to Autogenerate of ID from database and show on JSP page?
How to Autogenerate of ID from database and show on JSP page?  ... increasin 1 in the previously stored tsk id) on JSP page when I click... it (in taskAction.java) that it auto generate tasksid in jp page when i click on Create_task.jsp
How to Autogenerate of ID from database and show on JSP page?
How to Autogenerate of ID from database and show on JSP page?  ... page when I click on CreateTask.jsp page.How can i do so?My project storing user... should i make it (in taskAction.java) that it auto generate tasksid in jp page when
How to Autogenerate of ID from database and show on JSP page?
How to Autogenerate of ID from database and show on JSP page?  ... increasin 1 in the previously stored tsk id) on JSP page when I click... it (in taskAction.java) that it auto generate tasksid in jp page when i click on Create_task.jsp
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
Adding image to database through jsp or HTML page ,while adding only image should show.
Adding image to database through jsp or HTML page ,while adding only image should show.   Adding image to database through jsp or HTML page,while adding only image should show. After that i need view that uploaded image from
JavaScript Show Hide table
JavaScript Show Hide table...; In this section, we are going to show and hide table on clicking the button using... document.getElementById('div') grabs the id of the table and refer to property 'visibility
Div (Ajax Tag) tag Example
without refreshing the entire page. The div tag when used with Ajax refreshes...Div (Ajax Tag) tag Example       In this section, you will learn about the div tag. The div tag is an Ajax
DIV ERROR - Framework
DIV ERROR  I HAV FACING THE PROBLEM..... when...i m fetching... ....at that time the view is very good....but if there hav'nt any space at that time my div tag is strached....when i maintain max width....at that time...my web page dose'nt
scrolling div ipad
scrolling div ipad   Please suggest me how to scroll the div in iPad UIWebView? Thanks
div background color in html
div background color in html   How to change the background color of DIV in HTML
class of div tag
class of div tag  How can i recognize the selected DIV class
div to scrollbar - Java Beginners
div to scrollbar  hi, thanks a lot for replying but my question is some what different let me make it more clear i have div which increases in size... that division but now the question is if i resize the window which means when the div
indent div css
indent div css  How can i indent with outer and inner margin?  .../answers/viewqa/HTML/17553-indent-div-css.html :Indent DIV in CSS
div overflow hidden
div overflow hidden  How to make div overflow hidden? Thanks   Hi, Here is the code: <div style="widht:200px; height:600px; overflow:hidden;"> </div> Thanks
div style background
div style background  How to add background color to a div? What is the code of div style background?   Hi, You can use the following code: <div style="background-color: #ccffcc;"> <p>Content</p> <
how to retrieve text and images from mysql database and show on html page using jsp servlet
how to retrieve text and images from mysql database and show on html page using jsp servlet  <%@ page language="java" contentType="text/html... {color:blue} <%@ page import="java.sql.*" %> <%@ page import
How to add background image to div using CSS?
How to add background image to div using CSS
Div Disappear
div style float right
div style float right  How to align div to right? Share me the code for div style float right. Thanks   Hi, You can use following code: <div style="float: right; widht:300px; height:600px;"> <p>Content<
ModuleNotFoundError: No module named 'contents'
ModuleNotFoundError: No module named 'contents'  Hi, My Python... 'contents' How to remove the ModuleNotFoundError: No module named 'contents... to install padas library. You can install contents python with following
ModuleNotFoundError: No module named 'contents'
ModuleNotFoundError: No module named 'contents'  Hi, My Python... 'contents' How to remove the ModuleNotFoundError: No module named 'contents... to install padas library. You can install contents python with following
indent div css
Div file in css  How can i indent div with outer and inner margin... it in another div. For example, make the outer div margin: 0 auto; and the inner div.... (adsbygoogle = window.adsbygoogle || []).push({}); Indent div
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance
image on div or cell of table
image on div or cell of table  I am using ms access database and I... but it display on browser but I want to display on inside the div tag or table tag pls... is to display on div or table... thnx in advance

Ads