I need the ‘please select a checkbox’ to be gone when i select a checkbox and click for an answer. but apparently, it is there no matter how i try.
for (var i = 0, count = events.length; i < count; i++) {
var checkbox = U.$(events[i]); // Get the element.
if (checkbox.checked == true) { // Is it checked?
U.addEvent(document, events[i], reportEvent);
} else {
U.removeEvent(document, events[i], reportEvent);
if (checkbox.checked == true) {
U.$('output').value = "";
} else {
U.$('output').value = 'please select a checkbox';
}