Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Selects all messages on Squirrelmail to allow for easy deleting on servers that have quotas (was designed to work with the student and alumni squirrelmail at IMSA)
var inputs = document.getElementsByTagName("input");
var checkboxes = [];
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "checkbox") {
checkboxes[checkboxes.length] = inputs[i];
for (var j = 0; j < checkboxes.length / 2; j++) {
checkboxes[j].checked = true;

This comment has been minimized.

Copy link
Owner Author

@bencooper222 bencooper222 commented Aug 12, 2016

Accidentally used the = assigning operator instead of the == operator the first time around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment