It seems the way a checkbox renders in SharePoint 2013 server has changed from the way it was rendered in 2010.
When I view the source through the browser I see...
<!-- FieldName="MyCheckboxes"
FieldInternalName="MyCheckboxes"
FieldType="SPFieldMultiChoice"
-->
<span id='WPQ......' data-sp-control='SPFieldMultiChoice' data-sp-options'{"mode"e;:2,"source":"MyCheckboxes"}'></span>
My attempt to access the checkboxes with JavaScript:
var checkboxes = document.getElementsByName("MyCheckboxes");
var len = checkboxes.length;
alert(len);
len always returns "0", so it appears I'm not actually accessing the checkboxes (I have 10 or so options).
What am I missing?? How can I retrieve checked boxes using JavaScript?? Thanks in advance for any feedback.