How can I add a class with jquery once dynamic loading is finished?
<p>I need to add a class to an <code>&lt;a&gt;</code> that is added programmatically. When I call <code>addClass</code> it doesn't add it, this is I assume because the plugin hasn't finished installing all it's bits and pieces so the anchor isn't there yet.</p>

<p>The page is <a href="http://nicolaelvin.com/community/" rel="nofollow">here</a>. It's the login bar at the top. I want to add a class to the login and sign up buttons e.g.</p>

<pre><code>jQuery('.bp-login a').addClass('simplemodal-login');
jQuery('.bp-signup a').addClass('simplemodal-register');
</code></pre>

<p>The HTML for that section is</p>

<pre><code>&lt;ul class="main-nav"&gt;
&lt;li class="bp-login no-arrow"&gt;
    &lt;a href="http://nicolaelvin.com/community/wp-login.php?redirect_to=http%3A%2F%2Fnicolaelvin.com%2Fcommunity"&gt;Log In
    &lt;/a&gt;
&lt;/li&gt;
&lt;li class="bp-signup no-arrow"&gt;
     &lt;a href="http://nicolaelvin.com/community/register/"&gt;Sign Up
     &lt;/a&gt;
&lt;/li&gt;
...&lt;/ul&gt;
</code></pre>
