Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 combo, 1 field

Status
Not open for further replies.

biddingbong

IS-IT--Management
Sep 10, 2004
67
MU
Hi, Ive got 3 combobox on a page and they are all retrieving from the same field. The user will have the option of selecting from 1 to 3 products. But how can I populate all the three combo so that if the user select 1 product from one combo , the same product should not be in the 2nd combo, and selecting another product from the 2nd combo, the 3rd combo should not contain the products chosen in the first and the second combo. I really dont know how to do that.
Thanks.
 
This is a fairly common question. A quick search of the Javascript forum -- forum216 -- should provide an answer for you.

The "default" way of doing this is to provide a multiple selection list where the user can select 3 choices using their control/command key rather than having three separate boxes, but that doesn't always suit your needs.

forum216 should be able to help, as your question has nothing to do with ASP.
 
ok, but how to restrict the selection to 3?
I dont use any message box.
The user is notified by response.write
With the multiple selection, it is possible for the user to select all options in the list.
Is there a way to restrict that?
 
No, there's no way to restrict it to 3 except by using Javascript. Forum216
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top