assuming the following code:
<input type="checkbox" name="categories[9507]">
is there a javascript command that can simply select every checkbox like that on the page? the name’s change slightly in numbers only.
I need to select around 15000 on a page, without a select all available ๐
(something that I could put into a bookmark and click, or console of firebug would be best)
Pure JS, modern browsers-only (IE 8+, FF 3.5+, Opera 10+, Safari 3.2+, Chrome 1+):
Fiddle
QSA Reference