Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] counting checkboxes


  • From: sclay at ufl.edu (Steve Clay)
  • Subject: [Javascript] counting checkboxes
  • Date: Thu Feb 16 09:01:13 2006

Thursday, February 16, 2006, 6:27:32 AM, Michael Borchers wrote:
> but by the way: can i get a Element by input Type? f.e. checkbox or text?!

http://simon.incutio.com/js/getElementsBySelector.html
alert(document.getElementsBySelector('input[type="checkbox"]').length);

Or, more powerful, http://jquery.com/ I haven't used it, but it includes
some very nice DOM querying/filtering methods.

Steve
-- 
http://mrclay.org/