In attempting to use an onclick event on another section of a webpage, I encountered difficulties with setting a checkbox to be checked on my web form. Even though all the form and checkbox IDs/names were correctly configured, none of the following methods seemed to work:
<a href="#" onclick="document.getElementById('frmEditBasicBasic').active.checked=TRUE;"> test </a>
<a href="#" onclick="document.frmEditBasicBasic.active.checked=TRUE;"> test </a>
<a href="#" onclick="document.getElementById('active').checked=TRUE;"> test </a>
<a href="#" onclick="window.document.getElementById('frmEditBasicBasic').active.checked=TRUE;"> test </a>
<a href="#" onclick="window.document.frmEditBasicBasic.active.checked=TRUE;"> test </a>
<a href="#" onclick="window.document.getElementById('active').checked=TRUE;"> test </a>