title: JQuery how to bind on click event to all check box
body: <p>I have multiple checkbox like so</p>
  
  <pre><code>&lt;input name="1[]" type="checkbox"&gt;
  &lt;input name="1[]" type="checkbox"&gt;
  &lt;input name="2[]" type="checkbox"&gt;
  &lt;input name="2[]" type="checkbox"&gt;
  &lt;input name="3[]" type="checkbox"&gt;
  &lt;input name="4[]" type="checkbox"&gt;
  </code></pre>
  
  <p>How would I bind an onclick even to all of those checkbox.
  And run a function.. lets say a prompt "you click one of the listed checkbox"</p>
  
  <pre><code> $("input").click() {
  
              return confirm("you click one of the listed checkbox?");
  
      });
  </code></pre>
  
  <p>This doesn't work </p>