Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML Show mu;tiple DIV contents in a page
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Anoop Pete
Show mu;tiple DIV contents in a page
0 Answer(s)      3 years and 6 months ago
Posted in : HTML


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,


Advertisement
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
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
Advertisements
Jquery Hide and Show Div
: Show/Hide Div in jQuery <!DOCTYPE html> <html> <head> <...;).show(); }); }); </script> </head> <body> <div id...Using jQuery effects one can perform lots of task such as Hide, Show, Toggle
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
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
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
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 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 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
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>
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
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
JavaScript getElementById div
JavaScript getElementById div... example we have used document.getElementById() method to get access to a div element...() method on a div element. We have created a div with the id "myDiv"
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
The PHP file_get_contents() function , file_get_contents php
(), fsockopen() functions It then returns  file contents as String  To show...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
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
DIV in HTML
DIV in HTML  What is DIV in HTML
Show Hyperlink in HTML Page
Show Hyperlink in HTML Page   ... code show you a HTML page, that create a link to another page. The code begins... to be displayed</a> is used to show the url of the page to which hyperlink
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
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?  ... 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
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
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
Web Contents
Web Contents       If coding is the body of the website, web contents are the soul. Without web contents, a website is not more than a dead body. To be an average website, web
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
Advertisements
 

 

 

DMCA.com