I am using this jQuery snippet to show / hide content when a link is clicked..

```
jQuery(document).ready(function() {
  jQuery('.showSingle').on('click', function () {
    jQuery(this).addClass('selected').siblings().removeClass('selected');
    jQuery('.targetDiv').hide();
    var selector = '#div' + jQuery(this).data('target');
    jQuery(selector).show();
  });
});

```

<http://jsfiddle.net/W4Km8/7947/>

For some reason the selected class is not being removed when another link is clicked on, where am I going wrong?