请帮助限制多个选择列表框中的选择数量 [英] Please help to limit number of selections in multiple select list box

查看:49
本文介绍了请帮助限制多个选择列表框中的选择数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想在

多选列表框中限制用户可以选择的数量。我在界面上有一个说明,说

只有x不。应该选择项目,我检查号码服务器

方面,但我想在

客户端实现一些javascript来做同样的事情。理想情况下,我希望javascript可以在IE5 +和

Netscape6 +中使用。


谢谢,


Paul

Hi,

I''d like to limit the number of selections a user can make in a
multiple select listbox. I have a note on the interface to say that
only x no. of items should be selected and I check the number server
side but I''d like to implement some javascript to do the same on the
client side. Ideally I''d like the javascript to work in IE5+ and
Netscape6+.

Thanks,

Paul

推荐答案

2004年1月22日09:39:20 -0800,Paul< pa ******** @ hotmail.com>写道:
On 22 Jan 2004 09:39:20 -0800, Paul <pa********@hotmail.com> wrote:
我想限制用户在多个选择列表框中可以选择的数量。我在界面上有一个说明,说只有x没有。应该选择项目,我检查号码服务器
方面,但我想在
客户端实现一些javascript来做同样的事情。


您需要提供更多信息,即当用户选择额外选项时应该发生什么?b $ b?是否应该只是提醒用户?

是否应该使用某种形式的智能算法来保持在规定限制范围内选择的数量?

理想情况下,我希望javascript能够在IE5 +和Netscape6 +中运行。
I''d like to limit the number of selections a user can make in a
multiple select listbox. I have a note on the interface to say that
only x no. of items should be selected and I check the number server
side but I''d like to implement some javascript to do the same on the
client side.
You''ll need to provide some more information, namely, what should happen
when a user selects a extra option? Should the user simply be alerted?
Should some form of intelligent algorithm be applied to keep the number of
selections within the prescribed limits?
Ideally I''d like the javascript to work in IE5+ and Netscape6+.




除非这是一个Intranet应用程序,否则我希望你能让它工作
我浏览器(Opera)上的
以及其他正在使用的浏览器。超越

过时的两个浏览器世界。


迈克


-

Michael Winter
M。****** @ blueyonder.co.inva lid(将.invalid替换为.uk以回复)



Unless this is an Intranet application, I would hope you want it to work
on my browser (Opera) and every other one in use, too. Move beyond the
outdated ''two browser'' world.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)


在文章< op *********** ***@news-text.blueyonder.co.uk>,
M。****** @ blueyonder.co.inva 盖子启发我们...
In article <op**************@news-text.blueyonder.co.uk>,
M.******@blueyonder.co.invalid enlightened us with...
理想情况下,我希望javascript能够在IE5 +和Netscape6 +中运行。
Ideally I''d like the javascript to work in IE5+ and Netscape6+.



除非这是一个Intranet应用程序,否则我希望你能在我的浏览器(Opera)和其他正在使用的应用程序上工作。超越
过时的两个浏览器世界。



Unless this is an Intranet application, I would hope you want it to work
on my browser (Opera) and every other one in use, too. Move beyond the
outdated ''two browser'' world.




别忘了Safari。 :)

我听说它在Mac用户中越来越受欢迎了...


我自己使用Mozilla或Netscape 7,具体取决于我使用的是哪台电脑我在。


/很高兴我这些天为内联网应用程序编码


-

-

~kaeli~

一个逃出监狱的小型算命先生是一个很小的b / b
介质。
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Don''t forget Safari. :)
I hear it''s getting very popular with Mac users...

I myself use Mozilla or Netscape 7, depending on which computer I''m on.

/glad I code for intranet apps these days

--
--
~kaeli~
A midget fortune teller who escapes from prison is a small
medium at large.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


2004年1月22日星期四12:24:40 -0600,kaeli< ti ****** @ NOSPAM.comcast.net>

写道:
On Thu, 22 Jan 2004 12:24:40 -0600, kaeli <ti******@NOSPAM.comcast.net>
wrote:
在文章< op ************** @ news-text.blueyonder.co.uk>,
M。****** @ blueyonder.co.inva 盖子启发我们......
In article <op**************@news-text.blueyonder.co.uk>,
M.******@blueyonder.co.invalid enlightened us with...
>理想情况下,我希望javascript能够在IE5 +和Netscape6 +中运行。
除非这是一个Intranet应用程序,否则我希望你能在我的浏览器(Opera)和其他正在使用的浏览器上工作
也是。超越
过时的两个浏览器世界。
> Ideally I''d like the javascript to work in IE5+ and Netscape6+.
Unless this is an Intranet application, I would hope you want it to work
on my browser (Opera) and every other one in use, too. Move beyond the
outdated ''two browser'' world.



不要忘记Safari。 :)



Don''t forget Safari. :)




我没有。 :P


" ...还在使用其他每一个。

我听说它在Mac用户中非常受欢迎。 ..


真的吗?不知道为什么...

我自己使用Mozilla或Netscape 7,具体取决于我在哪台电脑。



I didn''t. :P

"...every other one in use, too."
I hear it''s getting very popular with Mac users...
Really? Wonder why...
I myself use Mozilla or Netscape 7, depending on which computer I''m on.




我个人可以不要站在界面上。有一些关于它的事情

对我来说似乎很难看。除此之外,他们的优良应用。


迈克


-

Michael Winter
< a href =mailto:M。****** @ blueyonder.co.inva> M。****** @ blueyonder.co.inva lid(将.invalid替换为。 ; .uk回复)



I personally can''t stand the interface. There''s something about it that
just seems ugly to me. Other than that, their fine applications.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)


这篇关于请帮助限制多个选择列表框中的选择数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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