Check series of checkboxes according to string
<p>I have group of checkboxes nearly equals to 100 all are with name checkbox1...checkbox1oo. I am getting a string from database in the bit format. Now I need to check checkboxes using for loop according to everyposition for string..</p>

<p>just taking example. String is 10010. that means I have to select checkbox 1st AND 4th. Hows it will be possible.</p>

<pre><code>for (i=1;i&lt;=5;i++)
{
check every position of sting==1
than document.formname.checkbox[i]==checked.
}
</code></pre>

<p>I wish to do something like that.</p>
