Show/hide based on checkbox
<p>I have code to see if any checkboxes are checked, it's working. Here's where I'm usure, after it sees that none are checked, checked I want to have a DIV show up (hide/show I guess) somwhere and disappear if any of the boxes are checked.</p>

<hr>

<pre><code>function checkBoxValidate(cb) {
for (j = 0; j &lt; 8; j++) {
if (eval("document.myform.checkbox[" + j + "].checked") = false) {
document.views.checkbox[j].checked = false;
      }
   }
}

----------


&lt;form name="myform"&gt;
                      &lt;input class="checkbox" name="1" type="checkbox" value="check_1" onclick="document.getElementById('r-click').innerHTML = '1;" id="click"&gt;
                      1
                      &lt;input class="checkbox" name="2" type="checkbox" value="check_2" onclick="document.getElementById('s-click').innerHTML = '2';" id="click"&gt;
                      2
                     &lt;/form&gt;

&lt;div id=showInstructions&gt;Check boxes&lt;/div&gt;
</code></pre>

<p>Thanks!</p>
