Jquery detecting clicked element id
<p>I'm trying to use the same function to slide up and down a text area. using jquery's slidetoggle.</p>

<p>How can I make javascript detect the clicked element in order to know which box to expand.</p>

<p>Here is what I have</p>

<pre><code>function slidedown(id){



        $(id+'text').slideToggle(500);  


}
</code></pre>

<p>that is my function</p>

<p>in my html I have this </p>

<pre><code>&lt;a id="reroof" href="javascript:slidedown(this)"&gt;reroof&lt;/a&gt;
</code></pre>

<p>the section i want to expand is called rerooftext</p>

<p>however when I check the value of id.id I says undefined.</p>

<p>Any ideas?</p>
