Changing checkboxes using Javascript
<p>I have a series of checkboxes on an HTML page and I would like to check the checkboxes based on corresponding HTML query string params.</p>

<p>e.g.</p>

<pre><code>...path/page.html?i=1&amp;j=1&amp;x=0
</code></pre>

<p>would cause a page with three checkboxes to check 1 and 2 on load.</p>

<p>Can someone show me how to do this or point me in the direction of a suitable tutorial?</p>

<p>Many Thanks,</p>

<p>EDIT: A clarification, i, j and x are just picked off the top of my head, but they are boolean variables (1 = true, 0 = false) and each corresponds to a checkbox so:</p>

<pre><code>i = one checkbox, the value in the example is 1, so the checkbox should be checked.
j = as above
x = one checkbox, the value in the example is 0, so the checkbox should not be checked.
</code></pre>
