I have the folowing example:

```
<div class="filtrer">
    <a class="bold">Url 1</a>
    <a>Url 2</a>
</div>

```

First url is active, second is inactive, bold means is selected. I should be allowed to press only on Url 2, and as soon as i do that, the bold class shoud switch to the Url 2.

What i already tryed and did not work was this:

```
$('.filtrer a').filter(':not(.bold)').on('click', function(){
    var current = $('.filtrer a').filter(':not(.bold)');
    var standby = $('.filtrer a.bold');

    current.addClass('bold');
    standby.removeClass('bold');
})

```

Does anybody know why this is not working? Or have an optimized solution? Thanks