To reference this DOM element:
<input id="chkBxCheezDoodles" type="checkbox" />
in a Windows 8 JS app, I can do this:
document.getElementById("chkBxCheezDoodles").checked = true;
or this:
chkBxCheezDoodles.checked = true;
When (if at all) is getElementById preferred ahead of the direct reference? Is it considered "cleaner" to use getElementById?