jquery find and replace for multiple attributes
<p>Sorry I am just really starting to get into javascript and I can't nail down the syntax.</p>

<p>Here is my script:</p>

<pre><code>jQuery(document).ready(function ($) {
    $('div[align="right"][style="margin-right:15px;"]').each(function () {
        $(this).removeAttr('align')
        $(this).removeAttr('style');
        $(this).addClass('homepagecontent2');
    });
});
</code></pre>

<p>Basically I just want to find every div with <code>align="right"</code> and <code>style="margin-right:15px;"</code> and then remove the <code>align</code> and <code>style</code> and add the class.  </p>

<p>It works fine when I just look for <code>align="right"</code> but when I add the second element into the equation it breaks.</p>
