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 May 3rd, 2005, 07:50 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic select box from database values

Hi all,
I have 4 select boxes named state, district, tehsil, village. By default on form load the state is popluated with all the states in database. After selecting a state, the form is refreshed and the district select box is populated with districts of the selected state. Similiarly for tehsils and blocks. This is time and database query consuming. I need to retrieve all the districts, tehsils, etc in one nX4 matrix and use javascript to appropriately populate the respective select boxes on change of the other. Can anybody send me javascript code for that, may be for just 2 levels, state and district? I can insert the jsp code in that.


Prashant Kr,
MIS Consultant
 
Old May 4th, 2005, 01:45 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you can find the answer at

http://dynamicdrive.com/dynamicindex...ects/index.htm







Similar Threads
Thread Thread Starter Forum Replies Last Post
DYNAMIC SELECT LIST BUILT FROM DATABASE celia05es BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 August 10th, 2007 09:47 AM
Dynamic values stored in a select button using JSP dhruthi.ram99 Pro JSP 1 May 28th, 2007 07:33 AM
Dynamic Checkboxes using dynamic Select Values bsheridan Classic ASP Databases 0 March 12th, 2006 10:17 AM
dynamic upload a combo box from database on select rashmisrao JSP Basics 4 February 27th, 2006 08:41 AM
compare the values in a select box ayse1st BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 January 7th, 2006 03:58 PM





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