Jquery variable problem
<p>The HTML:</p>

<pre><code>&lt;div class="first" id="first_id"&gt;
&lt;div class="second"&gt;text sample&lt;/div&gt;
&lt;div class="third"&gt;&lt;button type="submit" class="some_class" id="some_id"&gt;send&lt;/button&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Jquery:</p>

<pre><code>$("#some_id").click(function() {
var test = $(this).closest('.first').attr('id');
..
return false;
});
</code></pre>

<p>I want to replace content of the "first" div using var "test" in jquery code above.
Something like:</p>

<pre><code>$("."+test).html('&lt;img src="img/spin.gif"&gt;');
</code></pre>

<p>But when I put this part of the code in function above it does not work. What I did wrong?</p>
