How to change the href of buttons with jquery
<pre><code>&lt;a class="btn conversation" href="/contact1"&gt; &lt;/a&gt;
&lt;a class="btn conversation" href="/contact2"&gt; &lt;/a&gt;
&lt;a class="btn conversation" href="/contact3"&gt; &lt;/a&gt;
</code></pre>

<p>I have a number of buttons with a special <em>conversation</em> class. I would like to attach the value <code>?open_deals</code> to all these buttons's href attribute.</p>

<pre><code>$('.conversation').attr('href', $('.conversation').attr('href') + '?open_deals');
</code></pre>

<p>I have tried this but all of the buttons get the href value: <code>/contact1?open_deals</code></p>

<p>I think I have to use <code>$(this)</code> when setting the value. Not sure.</p>
