title: Bootstrap checkbox
body: <p>I've been developing a web application using bootstrap 3.0.2 and jQuery. But I've some problems with checkboxes. Imagine that I’ve the following checkbox:</p>
  
  <pre><code>&lt;label class="checkbox margin-left5"&gt;
  &lt;input type="checkbox" name="xptoName" id="xptoNameId"&gt;
  Hello World
  &lt;/label&gt;
  </code></pre>
  
  <p>So i want to check/uncheck through jQuery. For that, I use this function:</p>
  
  <pre><code>function checking(isToCheck, id){
   $("#"+id).attr('checked', isToCheck);
  }
  </code></pre>
  
  <p>If you call the first time this function:</p>
  
  <pre><code>checking(true, "xptoNameId");
  </code></pre>
  
  <p>It'll check the checkbox, but if I called several times after this, for checking and unchecking the checkbox will not check again.</p>
  
  <p>Any clue for this strange behavior?</p>
  
  <p>Thanks.</p>