Hacker News new | ask | show | jobs
by RodgerTheGreat 1798 days ago
or save a conditional:

    container.classList.toggle('checked',checkbox.checked)
1 comments

I forgot about .toggle(), that's definitely neater.