评估下拉列表中的选项以进行唯一选择? [英] Evaluate Options in Dropdown for Unique Selection?

查看:63
本文介绍了评估下拉列表中的选项以进行唯一选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人对此有任何想法?


我不知道如何评估对方的无空白选择

a形式如下:。


我有一个包含6个下拉字段的表单,每个字段包含30个选项(每个30个选项)下拉列表)。

用户需要从每个下拉菜单中选择30个选项中的一个,但是他们选择的每个选项必须是唯一的(没有重复)

选项)或者必须留空。

例如用户可以在dropdown1中选择Option3,但必须为其他下拉菜单选择一个

不同的选项 - 或者让他们不被选中。


任何帮助都是非常感谢...


JL

Does anyone have any ideas on this please?

I don''t know how to evaluate the no-blank selections against each other from
a form as follows: .

I have a form with 6 dropdown fields, each containing a selection of 30
options (the 30 options are the same for each dropdown list).
The user needs to select ''one of the 30 options'' from each dropdown
selection, but each option they select must be unique (no duplicate
selections) or it must be left blank.
E.g. The user can select Option3 within "dropdown1", but must select a
different option for the other dropdowns - OR leave them unselected.

Any help is greatly appreciated...

JL

推荐答案

文章< wv ****** *********@newsfe1-gui.server.ntli.net>,
de***********@THISBIThotmail.com 用...启发我们
In article <wv***************@newsfe1-gui.server.ntli.net>,
de***********@THISBIThotmail.com enlightened us with...
例如用户可以在dropdown1中选择Option3,但必须为其他下拉菜单选择一个不同的选项 - 或者让他们不被选中。

非常感谢任何帮助...

JL
E.g. The user can select Option3 within "dropdown1", but must select a
different option for the other dropdowns - OR leave them unselected.

Any help is greatly appreciated...

JL




我不认为他们都在同一个订单中,所以selectedIndex
$如果选项相同,b $ b会是相同的吗?


-

-

~kaeli~

当你呛了一个蓝精灵时,它变成了什么颜色?
http://www.ipwebdesign.net/wildAtHeart
http: //www.ipwebdesign.net/kaelisSpace



I don''t suppose they''re all in the same order so that the selectedIndex
would be the same if the option were the same?

--
--
~kaeli~
When you choke a smurf, what color does it turn?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


下拉选项将从数据库列表中动态填充(所以
$对于6个下拉菜单,b $ b的顺序相同。


选项标签将是&n t;候选人姓名并且期权价值将是b候选人ID。提交后,这些将被插入到

数据库表中以及用户的详细信息(作为投票系统)。


这可能是完成了这样的清单?

" kaeli" < TI ****** @ NOSPAM.comcast.net>在留言中写道

新闻:MP ************************ @ nntp.lucent.com ...

|在文章< wv *************** @ newsfe1-gui.server.ntli.net> ;,

| de***********@THISBIThotmail.com 启发我们... 。

| >例如。用户可以在dropdown1中选择Option3,但必须选择

| >其他下拉菜单的不同选项 - 或者不选择它们。

| >

| >非常感谢任何帮助...

| >

| > JL

| >

| >

| >

|

|我不认为他们都在同一个顺序中,因此selectedIndex

|如果选项相同则会一样吗?

|

| -

| -

| 〜凯莉〜

|当你呛了一个蓝精灵时,它变成了什么颜色?

| http://www.ipwebdesign.net/wildAtHeart

| http://www.ipwebdesign.net/kaelisSpace

|
The dropdown options would be dynamically populated from a database list (so
would be in the same order for the 6 dropdown menus).

The option labels would be the "candidate names" and the option value would
be the "candidate Ids". When submitted, these would be inserted in to a
database table along with the user''s details (as a voting system).

Could this be done having the list like this?
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
| In article <wv***************@newsfe1-gui.server.ntli.net>,
| de***********@THISBIThotmail.com enlightened us with...
| > E.g. The user can select Option3 within "dropdown1", but must select a
| > different option for the other dropdowns - OR leave them unselected.
| >
| > Any help is greatly appreciated...
| >
| > JL
| >
| >
| >
|
| I don''t suppose they''re all in the same order so that the selectedIndex
| would be the same if the option were the same?
|
| --
| --
| ~kaeli~
| When you choke a smurf, what color does it turn?
| http://www.ipwebdesign.net/wildAtHeart
| http://www.ipwebdesign.net/kaelisSpace
|


" JL" <德*********** @ THISBIThotmail.com> skrev i meddelandet

新闻:wv *************** @ newsfe1-gui.server.ntli.net ...
"JL" <de***********@THISBIThotmail.com> skrev i meddelandet
news:wv***************@newsfe1-gui.server.ntli.net...
有没有人对此有任何想法?

我不知道如何从表格中评估对方的无空白选择如下:。
<我有一个带有6个下拉字段的表单,每个字段包含30个选项(每个下拉列表的30个选项相同)。
用户需要选择''其中一个每个下拉菜单中有30个选项,但是他们选择的每个选项必须是唯一的(没有重复的选择)或者必须留空。
例如用户可以在dropdown1中选择Option3,但必须为其他下拉菜单选择一个不同的选项 - 或者让他们不被选中。

非常感谢任何帮助...

JL
Does anyone have any ideas on this please?

I don''t know how to evaluate the no-blank selections against each other from a form as follows: .

I have a form with 6 dropdown fields, each containing a selection of 30
options (the 30 options are the same for each dropdown list).
The user needs to select ''one of the 30 options'' from each dropdown
selection, but each option they select must be unique (no duplicate
selections) or it must be left blank.
E.g. The user can select Option3 within "dropdown1", but must select a
different option for the other dropdowns - OR leave them unselected.

Any help is greatly appreciated...

JL




如果在进行新选择时重新生成下拉菜单怎么样?

您有30个选项的基本集,然后:

*用所有选项填写第一个下拉菜单

*填写第二个下拉菜单,除了在第一个选择的那个选项之外的所有选项

下拉列表

*使用所有选项填写第三个下拉菜单,除了先选择的内容和

秒下拉菜单等等。


选择时制作后,您可以重新生成所有下拉菜单下游来自

一个修改过。


可能有点慢,但至少用户不能选择不存在的项目。


Joakim Braun



How about regenerating the dropdowns as new selections are made?
You have a base set of 30 options, then:
* Fill first dropdown with all options
* Fill second dropdown with all options except the one selected in the first
dropdown
* Fill third dropdown with all options except what''s selected in first and
second dropdowns, etc.

When a selection is made, you regenerate all dropdowns "downstream" from the
one modified.

Might be a bit slow, but at least the user can''t select a nonexistent item.

Joakim Braun


这篇关于评估下拉列表中的选项以进行唯一选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆