SyntaxFix
Write A Post
Hire A Developer
Questions
By using document.getElementById() function you don't have to pass # before element's id.
document.getElementById()
#
Code:
document.getElementById('_1234').checked = true;
Demo: JSFiddle