Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am doing a web project .. i am in need of displaying multiple forms in a panel ,,,

i need to display the forms when i select my menu items ....

when one menu item is selected then only one form corresponding to it should be displayed ...
Posted
Comments
Richard MacCutchan 16-Dec-11 5:09am    
And what exactly is your problem?

1 solution

you can us multipal div
and add style i.e. style="display:none"

when you click on the menu then you can show only that div which you want to show.

javascript on click:

JavaScript
var oldDiv;

function clk(dvNm)
{
if(oldDiv!=null)
oldDiv.style.display="none";
var dv=document.getElementById(dvNm)
dv.style.display="";
oldDiv=dv;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900