checked unchecked through js

JavaScript
document.getElementById("checkbox_id").checked;
//If checked returns true;
//else returns false;
Source

Also in JavaScript: