Click on an object, get another object?
<p>On click I get an objects id.</p>

<p>The id will be something like 'about-me'.</p>

<p>Now in the on click function I want to target the object that's called 'content-about-me'.</p>

<p>How can I do this? Ive tried this with no luck:</p>

<pre><code>$('.sub-nav').on('click', function(){

        $('#content-'$(this).attr('id'));

    });
</code></pre>
