Help coderanch get a
new server
by contributing to the fundraiser
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

drop down menus

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here's my problem!!
i have 2 drop down menus.. based on the selection in the 1st drop down menu.. the 2nd drop down menu has to be populated accordingly! how do i do this ???
ex: "drop down1" has values 1,2,3,4,5.
"drop down2" initially holds values a,b,c,d,e,f
if i select 3 in "drop down1".... only c,d,f (say) should be available for selection in " drop down 2"
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use onchange event.
On change of drop down1, based on its value, populate the options for dropdown2.
You can use AJAX to get these options for dropdown2 by passing the dropdown1 value..
 
ashwin venkat
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Prasad Krishnegowda wrote:You can use onchange event.
On change of drop down1, based on its value, populate the options for dropdown2.
You can use AJAX to get these options for dropdown2 by passing the dropdown1 value..



I'll try it out.. thanks !
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic