How to SET jquery .attr(), not get it
<p>When I want to read an attribute, I use </p>

<pre><code>$('#mydiv').attr('id');
</code></pre>

<p>How do I write to this attribute instead, so that I can change the id of the div in the markup?</p>
