This came up the past two weeks with some good discussions on it.  

Check the archives... There are a bunch of ways to skin this particular 
cat...

(Maybe I should write a faq on it)




-----Original Message-----
From: oagady [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 1:43 PM
To: struts-user
Subject: Populating select box dynamically


Hello,

In my html:form I have two select boxes: one with the
list of the countries and another one with the list of
states in a country. When the user selects a country I
have to populate the select box with the states for
this country. The list of states I get from the
database. Could someone recommend me the way how I can
do this dynamically? I can write a javascript (which
will be called when the user selects the country) to
populate the state select box, but how can I get the
list of the states in this script from the database?
Is there any possibility to dynamically get data into
javascript from the database? Or there is another way
to implement those two select boxes? 

Please help.

Thanks 
Olga

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to