HTML/Javascript problem



Programming Help Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



HTML/Javascript problem Expand / Collapse
Author
Message
Posted 3/30/2010 9:00:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/30/2010 9:37:05 AM
Posts: 1, Visits: 3
Hi,

I have two combo boxes in which when the user selects certain items in both combo boxes, it determines whether I display a third combo box.

E.g.

If the user selects Yes to the first combo box which states ' Do you own a pet?' and the user selects Dog from the second combo box which states ' What pet do you own?' . A third combo box will appear stating 'Please choose breed?' with a list of dog breeds.

Can you give me any ideas how best to do this?

Post #5177
Posted 6/5/2010 12:03:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/4/2010 11:46:12 PM
Posts: 2, Visits: 1
You could setup a javascript change event listener on the combo box. When this event is triggered, you would then set the third combo box to visible and load it up with the content you want.

If you don't already, I would recommend using a javascript library like jQuery or ExtJS. It will take away a lot of the headache.

If you need anymore help, with anything, feel free to email me at t@thintz.com.


-Thomas Hintz

http://thintz.com
I also offer programming tutoring.
Post #5218
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: ProgrammingHelp, Viral Unity, Matt.Hill, DaveL, Alex.D

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 3:59am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.047. 10 queries. Compression Disabled.