Problem with testing for checkbox being marked
<p>I have an input array like</p>

<pre><code>&lt;input id='delete[18]' name="delete[18]" value="1" type="checkbox"&gt;
&lt;input id='delete[19]' name="delete[19]" value="1" type="checkbox"&gt;
</code></pre>

<p>This Javascript code for check does not work. Why?</p>

<pre><code>if (delete_question.19.checked == 1) {
    if (confirm('msg')) {
        return true;
    } else {
        return false;
    }
}
</code></pre>
