How can I change an html checkbox dynamically using JavaScript?
I need a checkbox to be updated (ie ticked) after a key press.
<label class="switch">
<input type="checkbox" id = "record">
<div class="slider round">
</div>
Update: this is what I was looking for:
document.getElementById('record').checked = true;