Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

how to set dynamic value to a combo box?

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all..
i am facing problem with dynamic created combo boxes...i have 2 combo boxes..n the after the first combo box is set 4 a certain value,for tht value the second combo box gets the corresponding values in it..
my first combo box display the value but the second one doesnt take the value of first n display the list accordinly..plz help me out the code is given blow..i have used the javascript code also which was mention in sum forum..

the corresponding javascript code which gets executed on change is given blow

thanks in advance
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The onchange event is sending back the value of the selection. The script is trying to uses that value to get it out of the array. You have the arrays named different.
I would say use this script: http://www.javascriptkit.com/script/cut183.shtml Just do not include the Go Button...
Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic