title: Span Click Not working
body: <p>Why is the click event not fired here</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="checkboxBtn"&gt;
    &lt;span class="cheked" onclick="CheckSelected();"&gt;&lt;/span&gt;
    &lt;input id="23" type="checkbox"&gt;&lt;/input&gt;
    &lt;label&gt;Compare Now &lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>function CheckSelected() {
          alert("");
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/wa8oa.jpg" alt="enter image description here"></p>
  
  <p>The checkbox in the image is the span tag</p>