How to add class to links that variates
<p>I use a free punBB script and the links to the users profiles are like this: <code>/u1</code>, <code>/u2</code>, <code>/u3</code> etc.</p>

<p>I'm tryng to create a tooltip when someone is crossing the cursor to a userlink, but first, I need to add a class to those links and i don't know how, because, it differ for every user.</p>

<p>For a single link I use:</p>

<pre><code>$(function() {

    jQuery('a').each(function() {
        if(jQuery(this).attr("href") == "/u1") {
            $(this).addClass('profile');
        }
    });

});
</code></pre>
