Hacker News new | ask | show | jobs
by extra88 865 days ago
A more modern solution would be to use classList.toggle() or toggleAttribute(hidden).