Use 1 function to fade in multiple divs using an ID
<p>I need to show/hide multiple divs based on what the user clicks on. </p>

<p>So they click on a link:</p>

<pre><code>&lt;a href="#" id="image1"&gt;Click me to show&lt;/a&gt;
</code></pre>

<p>Which then shows the div using jQuery:</p>

<pre><code>$(document).ready(function(){

    $("#image1").click(function () {
    $("#image1_view").fadeIn();
    return false; 
    e.preventDefault(); 
    });
});
</code></pre>

<p>What I need to do is do this multiple times so there are multiple links on a page which, when clicked on, show the correct div.</p>

<p>Short of copying &amp; pasting the above code loads of times, what is the easier way to do it? How can I pass an ID of the link to the jQuery so that it knows which div to show?</p>

<p>Thanks!</p>
