title: How can I toggle a panel's visibility using a CheckBox?
body: <p>I have an <code>&lt;asp:CheckBox&gt;</code>, and I need to apply a JavaScript call upon it. The JavaScript function should set the visibilty of an <code>&lt;asp:Panel&gt;</code> to be true if the <code>CheckBox</code> is checked. The visibility of the panel should be false if the <code>CheckBox</code> is not checked.</p>
  
  <p>I wasn't able to reach the JavaScript function using an <code>&lt;asp:CheckBox&gt;</code> with a normal <code>input:type = checkbox</code> it worked. But I need it to be an <code>&lt;asp:CheckBox&gt;</code>!</p>