How can a checkbox be checked/unchecked using JavaScript, jQuery or vanilla?
I agree with the current answers, but in my case it does not work, I hope this code help someone in the future:
// check $('#checkbox_id').click()