W3C home > Mailing lists > Public > public-html-comments@w3.org > March 2010

Equivalent of RadioNodeList for checkboxes

From: Anurag Mishra <anurag@appwhirl.com>
Date: Fri, 12 Mar 2010 21:42:02 -0800
Message-Id: <FD60BF97-6E9B-44A5-82FB-755221A5F46E@appwhirl.com>
To: public-html-comments@w3.org
Hi,

Recently a question regarding best practices for getting input radio  
elements was posted on StackOverflow.com at http://stackoverflow.com/questions/2437190/best-practice-accessing-radio-button-group 
.. I tried to lookup the specs and saw that a RadioNodeList interface  
has been defined. The spec says that when accessing an  
HTMLFormsCollection with the namedItem method, a RadioNodeList object  
is returned if multiple elements are matched with same names.

interface RadioNodeList : NodeList {
           attribute DOMString value;
};

However, this seems to deal specifically with radio input elements.  
The RadioNodeList interface defines an attribute value which is a  
DOMString. Is there a similar interface for checkbox elements and  
their collection that provides access to values of all elements that  
are checked?

Cheers,
Anurag
Received on Monday, 15 March 2010 08:26:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:01 GMT