Setting an attribute to the last position
<p><strong>Is it possible to set a new attribute to the last position of a html element using javascript/jQuery?</strong></p>

<p>This would be helpfull for me in a case where the attribute order is important to decide whether the paragraph has changed or not.</p>

<p><strong>Example:</strong></p>

<pre><code>&lt;p attribute1="true" attribute2="true"&gt;
</code></pre>

<p>Now, i would like to add a third attribute so that the resulting paragraph would look like</p>

<pre><code>&lt;p attribute1="true" attribute2="true" attribute3="true"&gt; 
</code></pre>
