checked/unchecked checkboxes
<p>I am trying to pass a value for when a checkbox is either in a checked state or if it's not checked.</p>

<p>However, it doesn't appear to pass the non-checked state. the code I am using is below:   </p>

<pre><code>if (document.getElementById('PRODUCT_REVIEW_EMAILS_FIELD').checked == true){
            document.getElementById('PRODUCT_REVIEW_EMAILS_FIELD').value = 'on';
            }
        else {
            document.getElementById('PRODUCT_REVIEW_EMAILS_FIELD').value = 'off';
            }
</code></pre>

<p>I have added an alert:</p>

<pre><code>alert(document.getElementById('PRODUCT_REVIEW_EMAILS_FIELD').value);
</code></pre>

<p>which surprisingly shows the 'off' value - however - this isn't passed successfully.</p>

<p>What am I missing?</p>
