Y
Hacker News
new
|
ask
|
show
|
jobs
by
RodgerTheGreat
1798 days ago
or save a conditional:
container.classList.toggle('checked',checkbox.checked)
1 comments
simonw
1797 days ago
I forgot about .toggle(), that's definitely neater.
link