title: How do I call a script when a HTML checkbox is checked?
body: <p>I have the following code.  When you click apple, a script should be called and an alert should pop up.. Why does this not work?</p>
  
  <p>When you check apple, the script apple should be called!</p>
  
  <pre><code>&lt;input type="checkbox" name="apple" id="apple" onclick ="apple()" /&gt;
  &lt;label for = "apple"&gt; Apple ($.59) &lt;/label&gt;
  </code></pre>