Was trying to implement something that I saw in another wiki on a wiki that I'm an admin on, and well, trying to test it doesn't seem to be working.
// Checks if a div with the id "spoilers_image" is clicked and then adds a
// "display:none" style attribute to a div with the id "spoilers".
document.getElementById("spoilers_image").addEventListener("click", function() {
$('#spoilers').fadeOut(400, function () {
this.style.display = "none";
});
});
Source: The DDLC wiki.