title: Jquery - Add tag "checked" on input
body: <p>I've got a problem, i want to add "checked" when i click on the input but I don't know how to do, here is my jQuery code :</p>
  
  <pre><code>jQuery('#myId div input').click(function(){
                                  jQuery(this).attr('checked', 'checked');
                              });
  </code></pre>
  
  <p>And this is my HTML code :</p>
  
  <pre><code>&lt;form id="myId"&gt;
  &lt;div class="grid12-12"&gt;
  &lt;input type="radio" value="292" id="292" class="required-entry"&gt;
  &lt;label for="292"&gt;Ordonnance.jpg&lt;/label&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>but the thing is that if I do that, this is what happens, I have this in my tag :</p>
  
  <blockquote>
    <p>checked = "checked"</p>
  </blockquote>
  
  <p>And I want only "checked" in my tag like this </p>
  
  <pre><code>&lt;input type="radio" id="292" value="292" checked&gt;
  </code></pre>
  
  <p>if I remove the checked in the jQuery like this :</p>
  
  <pre><code>jQuery('#myId div input').click(function(){
                                  jQuery(this).attr('', 'checked');
                              });
  </code></pre>
  
  <p>I have an error.</p>
  
  <p>So how can I do that please ?
  Thanks in advance :)</p>