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

Christoph Päper christoph.paeper at crissov.de
Sat May 31 08:45:22 PDT 2008


When using

   <input type=checkbox>


   <select multiple>

one somtimes wants to limit the number of selected check boxes or  
options. I have no idea how to model this with |input|, but |select|  
could adopt the |min| and |max| attributes. They would not limit the  
content of |value| but the number of selected |option|s, which is  
similar to what is already specified for file upload controls. A  
common and special case would be setting the same value on both  
attributes to require a certain number of options to be selected.

I'd really like it if someone could come up with a way to make this  
work with |input|, too.

More information about the whatwg mailing list