Select all checkboxes in Javascript dynamically
April 25th, 2007 - CharlesI was looking at a post entitled Top 10 custom JavaScript functions, and I noticed Dustin talking about the various incarnations of getElementByClass(). I know this function has been around forever, but something triggered in my head and I used it to rewrite the ancient javascript checkbox selector I had (which was not class based). There is nothing original about the rewrite, but there doesn’t seem to be a place to grab something like this off the net if you wanted to avoid writing it by hand.
(more…)