GeeCON Prague 2014*
The moose likes Struts and the fly likes dynamically changing html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamically changing html:select" Watch "dynamically changing html:select" New topic
Author

dynamically changing html:select

hamlin stephen
Ranch Hand

Joined: Dec 11, 2003
Posts: 45
hi,
I have the script for changing state acording to country selected.
Its working fine in struts. but the problem is that in my page i have to show state according to country which is coming from database.
country is showing right as from database .but not refreshing the state.
if the state from database is there in select which is loaded default it showing right.but if it is not .not refreshing.....
any solution for this...please give me suggestions
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Hamlin,
Do you have onload calling your script?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
hamlin stephen
Ranch Hand

Joined: Dec 11, 2003
Posts: 45
in onload i am calling the same function for changing state with country
but still its not working...onload the function is not executing can u give me sample for that..
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30580
    
154

Hamlin,
 
GeeCON Prague 2014
 
subject: dynamically changing html:select