Unable to change text() value
<pre><code>&lt;div class="search_on" id="search-item"&gt;
    &lt;span class="text"&gt;one&lt;/span&gt;
&lt;/div&gt;
&lt;ul class="search_item" style="display: none;"&gt;
    &lt;li&gt;&lt;a href="#"&gt;one&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;two&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;three&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>jQuery code:</p>

<pre><code>$('.search_item li a').click(function() {        
    $('#search-item .text').text() = $(this).text();
    return false;
    $('ul.search_item').hide();
});
</code></pre>

<p>I want to get:when the user clicks the <code>a</code> link which in the <code>li</code> label, then change the value in <code>&lt;span class="text"&gt;one&lt;/span&gt;</code> to the value in the a label. Why does the above code not work?</p>
