• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in search using dropdowns with same vales

 
payal Jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two dropdowns in my search page one at up and one at down
and both have the values of states.
When I select the value from dropdown at top of page it gives the result and updates the down dropdown by states what i have selected.
This is what I want.
But Now when I select any location from down dropdown it shows the result from what i have selected in down dropdown but dosent update the up one.
Now if I again goes to up dropdown selection it display the old values and dosent update any of those.
I have named my dropdown as

name="updropdown"

&
name="downdropdown"
and in my java class
i take it as

and with "location " variable i am doing the search.
Please help me how to handle 2 dropdowns with the same valles for the search.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you go back to the page make sure that you set the submitted option as selected in both dropdowns.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!