rename javascript object in order to use a php array
<p>I never used javascript, but I need it for my project.
I would like to use a php array which is called abc[] inside a javascript function.</p>

<p>Currently the working javascript code is:</p>

<pre><code>if(document.form1.checkbox[i].checked)
</code></pre>

<p>I would like to use the abc[] array instead of checkbox</p>

<p>This doesn't work, because the [] of the php array name mix with the [i] of the javascript code...but it shows what I would like to achieve:</p>

<pre><code>if(document.form1.abc[][i].checked)
</code></pre>

<p>Is it possible to define abc[] as xxx variable in javascript or use any other method to get this working?</p>

<pre><code>if(document.form1.xxx[i].checked)
where xxx=abc[]
</code></pre>
