Topic: drop down menu form question (Read 164 times)
Cyberpunk Wannabe
Posts: 45
342 credits Members referred : 0
« on: Apr 20, 2008, 08:44:56 PM »
I'm not sure what its called, but looking for information on how to go about making it so that while in a form if there will be a drop down menu and depending on what you select more form objects will appear that are assoicated with that selection.
i hope that made sense
Cyberpunk Wannabe
Posts: 45
342 credits Members referred : 0
« Reply #1 on: Apr 21, 2008, 01:27:35 AM »
well i did find what i was looking, just took a lot of searching since didnt know what it was called.
however this is one thing in this that i am having a problem with. i need to create a two levels of drop downs. but when i try to do that it dosn't seem to work. here is the code, what i am i missing?
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <script type="text/javascript"> function showInfo() { var elem = document.getElementById('verify'); if(document.forms[0].menu.value == "verify") { elem.style.display="inline"; } else { elem.style.display="none"; } var elem = document.getElementById('second'); if(document.forms[0].menu.value == "second") { elem.style.display=""; } else { elem.style.display="none"; } var elem = document.getElementById('list'); if(document.forms[0].menu.value == "list") { elem.style.display=""; } else { elem.style.display="none"; } } </script> </head>