• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Dependent select list query

 
Ranch Hand
Posts: 89
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have two drop down list. when i select a value in the first list, the corresp value in the second select list gets selected..
i want that the user should not be able to select another value in the second select list without changing the value in the first list...
how should i go about it??
Plz help me out..

Thanks..
Nidhi
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trap the event onselect or onFocus on the dependent selection box and call blur() for the second selection box.

it wud mean that you will never be able to select the second selection list at all.
[ October 12, 2004: Message edited by: Balan Ram ]
 
Nidhi Singhal
Ranch Hand
Posts: 89
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx for the reply...
i used onBlur() on the onFocus() event of the second(dependent) select box... but it did'nt worked... so..i tried calling onFocus() of the first select box on the onFocus of the second select box...
this thing worked somewhat.... as now if i try to drop down the second select....then after 3-4 tries only..i m able to drop down and select another value....

is there any way that i can set the drop down to false?
or is there any other way out to the problem??
plz help..

thanks..
Nidhi
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
disable the second box

Eric
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic