Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drop down menus

 
ashwin venkat
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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"
 
Prasad Krishnegowda
Ranch Hand
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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 !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic