title: How to add an HTML attribute with jQuery
body: <p>Well, I have this jQuery image slideshow that uses the attribute "control" inside an &lt;a&gt;. Seeing how it didn't validate I searched for a way to add this attribute inside my HMTL via jQuery but I didn't really find anything relevant. Now I don't really care about how valid my page is, but I'm really curious in how to add an HTML attribute inside an HTML tag.</p>
  
  <p>In case I wasn't clear enough with my explanation, I have this code:</p>
  
  <pre><code>&lt;a id="previous" control="-6" href="#"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>And I want to add <strong>control="-6"</strong> with jQuery.</p>