Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2008, 11:29 PM
Authorized User
 
Join Date: Jul 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Assigning combobox value

How to assign value to a second combobox with reference to first combobox?

 
Old July 28th, 2008, 08:51 AM
Authorized User
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's a good article on Dynamic Options with JavaScript at http://www.quirksmode.org/js/options.html. This will help you populate the second combo box, just use the data from the first combo box to drive your options in the second one. If you have a lot of options to load you can also use Ajax to dynamically load the combo box.

Shawn Steward
Web Developer
www.shawnsteward.com
 
Old July 29th, 2008, 12:20 AM
Authorized User
 
Join Date: Jul 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much Shawn.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
Assigning value from variable cyberddindia Classic ASP Basics 3 November 7th, 2006 11:57 AM
Assigning Recordsets mrjeret BOOK: Access 2003 VBA Programmer's Reference 0 July 6th, 2006 09:39 AM
Assigning radiobuttons hydra14 C# 7 June 5th, 2004 12:25 AM
Assigning value to string shabboleth Beginning PHP 4 December 29th, 2003 05:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.