473,657 Members | 2,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use the Options tag in HTML (help needed asap!)

Hi everyone,

i have an assignment that needs immediate attention and was hoping i
would be able to get some help here.

im trying to create 3 option boxes that are linked together.

for example:

<Option Box 1> <Option Box 2> <Option Box 3>

General Information -----> Info 1.1 ---------> Next Info 1.1.1
-----> Info 1.2 ---------> Next Info 1.2.1

Contact Information -----> Info 2.1 ---------> Next Info 2.1.1
-----> Info 2.2 ---------> Next Info 2.2.1

from my limited HTML knowledge, i can only manage to link two of them
together using the simple code:

<select>
<option value="Info 1.1">General Information
<option value="Info 1.2">General Information
<option value="Info 2.1">Contact Information
<option value="Info 2.2">Contact Information
</select>

Please advise =_=
tony
Jul 23 '05 #1
3 2623
Tony Kim wrote:
i have an assignment that needs immediate attention and was hoping i
would be able to get some help here.

im trying to create 3 option boxes that are linked together.


Does your keyboard not have a shift key?

It seems you are asking for the option selected in one select element to
determine the options available to select in a second, and for the option
selected there to determine the options available in a third.

This is not possible in HTML. Select elements cannot be made interdependant.
You could make use of the optgroup element to group a number of options
together - but this only lets you go one level deep. (Future versions of
HTML (Ha!) may, according to the 4.01 specification allow nested optgroups,
but that is something for the distant future.

This leaves scripting. The safe way would be to have the user submit the
form, then display a different selection of options, and repeat as desired.
The unsafe way would be to use JavaScript to dynamically repopulate the
subsequent select elements when the onchange event of previous select
elements is triggered. You could combine the two methods so that the user
can submit the form to see new options if the JavaScript fails to work. If
you use JavaScript, you should probably consider defaulting subsequent
select elements to "DISABLED" (and remembering to reset 3 if 2 changes and
bother 2 and 3 if 1 changes).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
Tony Kim wrote:
i have an assignment that needs immediate attention and was hoping i
would be able to get some help here.


Example:
http://examples.tobyinkster.co.uk/ch...ff/choosestuff

Pretty Highlighted Source Code:
http://examples.tobyinkster.co.uk/ch...hoosestuff-src

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jul 23 '05 #3
Tony Kim wrote:

i have an assignment that needs immediate attention and was hoping i
would be able to get some help here.

im trying to create 3 option boxes that are linked together.

Try "optgroup". It may help here. You can't style it much in Win-IE6
(you can in Firefox and others), but its default styling isn't too bad
either.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1406
by: SC | last post by:
I'm having a problem getting this validation script to work. There are two images on the page with the ids of img_antirobot and img_chk_agree. In the final page it will validate about 12 entries, so this is just a snippet. If there are blank entries, the script is to change the appropriate images to warning icons. Unfortunately it aways errors at the getElementById with "undefined" as the reason. I know the names are right, so what's the...
0
981
by: Chris | last post by:
I have a security consultant group bashing Microsoft byt stating that the way IIS handles Session ID is flawed. They're asking me to, once my users hit the first asp page pre-authentication, to then destroy that session id (ASPSESSIONID) and re-assign one. How can that be done? It's read only. And I keep stating that this is in 128-bit SSL where the header is encrypted. Since my code is coming from COM+ (VB6.0) and I'm recycling to the same...
1
1609
by: lemes_m | last post by:
Hi All! I have very big problem and I can't continue my Work on my project until i solve it. Here is the situation: TblCalculations FldCalcId FldArticle FldQuantity FldPrice FldAvgPrice 1 1 10.000 0,20 0,20
0
1561
by: Pakmanoncrack | last post by:
The software company I work for creates 4 chm files from c# code with ndoc and then combines them into a fifth chm file by merging through html help. This is all done through a dos build and there are no manual steps between each process. We need it to stay that way. Here is the problem: a few classes found in one of the chm files (we will call it a.chm) use an object that is found in another chm file(b.chm). Since ndoc created the chm...
2
3239
by: k1ckthem1dget | last post by:
I need to display the unsorted list of names and display the sorted list of names. My program is getting a bunch of errors though, and i dont know why. I am getting the following errors. 28: error: cannot convert `char (*)' to `int*' for argument `1' to `void showArray(int*, int)' 33: error: expected unqualified-id before "for" 33: error: expected constructor, destructor, or type conversion before '<' token 33: error: expected...
1
1202
by: sauravb | last post by:
hey everybody im a beginner at C++ and i really really might sound dumb but please help me.. al i need to do is display the map of india using borland in graphics mode....i've been searching fr sumthin on the net but i only seem to find complicated programs to move images around but none so simple...so please do help me asap..... the help's really appreciated.... rgds saurav
1
2494
by: Miss Hyder | last post by:
hi everyone i really need help ...i bought a laptop with windows vista already installed now i hv installed vs.net 2003 n when i want to create asp web app/service it gives error that web server is running asp.net 1.0 ...i tried to use the cmd aspnet_regiis.exe -i n didnt work ...please anyone help me asap ...im new to development n started learning asp.net any help wud b great tc bye
0
1012
by: canadianbacon | last post by:
Hi, I don't even know if this is the right place to post this but i will, because I need help. I'm trying to finish this basic game. but I am having troubles. If anyone wants to help me out it would be great. I will admit this might take a long time, i am new to java and i suck at it(yes i will also admit that). by anyones standards this program probably really sucks, but its the best that i can do. my objectives: - when a button is...
0
819
by: j4v3d | last post by:
hi i have a ASP.net website i created in VB i need to change a few things around and im getting errors, is there any one willing to help me? i can even pay you for your time if you want? need to get this done ASAP, im not good at ASP and really am struggling if you need to have a look at the ASP files you can just PM me through here thanks again (ive uploaded them as well)
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.