Using ID as a variable
<p>I'm trying to find the text of the span with the class name "link" but i have problems.</p>

<pre><code>&lt;div id="item-0" class="box"&gt;
    .......
&lt;/div&gt;
&lt;div id="item-1" class="box"&gt;
    &lt;p&gt;&lt;strong&gt;Link: &lt;/strong&gt;&lt;span class="link"&gt;http://www.domain.com/list44/&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;&lt;input type="submit" value="submit" class="load-button2"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div id="item-2" class="box"&gt;
    .......
&lt;/div&gt;


$(".load-button2").click(function(){
    var id = $(this).closest('.box').attr('id');
    alert(id);  // showing the right box ID
    var linkp = $(/*** what should i put here? ***/ "#" + id + " .link").text;
});
</code></pre>
