title: Why is jQuery not picking up checkbox "click" event?
body: <p>I'm trying to incorporate <a href="https://stackoverflow.com/questions/1324703/how-might-i-calculate-the-sum-of-radio-button-values-using-jquery">this here</a> with checkboxes on Rails.</p>
  
  <p>My HTML looks like this:</p>
  
  <pre><code>&lt;div&gt;
    &lt;input id="reservation_item_ids_" name="reservation[item_ids][]" type="checkbox" value="17"&gt;
  </code></pre>
  
  <p>RCF, 32.0 €/vrk
      </p>
  
  <p>And the code like this (I'm using jQuery instead of $ to try to avoid conflicts with prototype, which is used by default in Rails 3):</p>
  
  <pre><code>    console.log("Initialize!");
  jQuery("input[type=checkbox]").click(function() {
      console.log("Clicked!");
  
     var total = 0;
  
      jQuery("input[type=checkbox]:checked").each(function() {
      total += parseFloat(jQuery(this).val());
      });
  
      jQuery("#totalSum").val(total);
  });
  </code></pre>
  
  <p>My console gives me only this:</p>
  
  <blockquote>
    <p>Initialize!</p>
  </blockquote>
  
  <p>..regardless of how much I click the checkboxes.. I also tried replacing "input[type=checkbox]" with "#reservation_item_ids" with no luck.</p>
  
  <p>No errors, no clues whatsoever..</p>