W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2008

[whatwg] [WF2] |min| and |max| number of selected |option|s

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 11 Jun 2008 14:08:10 +0200
Message-ID: <484FC02A.8090804@lachy.id.au>
Christoph P?per wrote:
> Dear WHAT WG
> When using
>   <input type=checkbox>
> or
>   <select multiple>
> one somtimes wants to limit the number of selected check boxes or 
> options.

Could you provide some examples of some sites that need to apply such 
limits, and show how people are currently achieving this?

Are there sites that use JavaScript to achieve this now, perhaps by 
listening for click events on the checkboxes, counting how many are 
checked and then preventing too many being checked.  Or are there sites 
that count how many are checked onsubmit to ensure there aren't too few 
or too many?

Lachlan Hunt - Opera Software
Received on Wednesday, 11 June 2008 05:08:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:03 UTC