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

Lachlan Hunt lachlan.hunt at lachy.id.au
Wed Jun 11 05:08:10 PDT 2008


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
http://lachy.id.au/
http://www.opera.com/



More information about the whatwg mailing list