Foreach loop javascript failing
<p>Why does this each statement cause my code to break? Also do I have to set an index with javascript?</p>

<pre><code>var email = [];

email['update'] = true;
email['e_case_id'] = $("#e_case").val();

var i = 0;

$.each($('.rowChecked'), function() {
    email['e_attachments'][i] = $(this).attr('id');
    i++;
});
</code></pre>
