Using an id to lin
<p>I have...</p>

<p>html:</p>

<pre><code>&lt;a href="#" class="link" id="1"&gt;Link 1&lt;/a&gt;
&lt;a href="#" class="link" id="2"&gt;Link 2&lt;/a&gt;

&lt;div id="page1" class="page"&gt;1&lt;/div&gt;
&lt;div id="page2" class="page"&gt;2&lt;/div&gt;
</code></pre>

<p>javascript (jquery):</p>

<pre><code>$("a[class='link']").click(function() {
        var num = $("a[id]");
        $('#page' + num).fadeIn();
});
</code></pre>

<p>What I am trying to do is have a specific div fade in when a link is clicked. So if you click link 1 with an id of "1" I want the div with id #page1 to fadein.</p>
