set or select the text of dropdownlist to the text : select here or any other text
<p>I want to set/select the text baed upon the texts I choose.  e.g I have the following code that is not selecting the text but instead is adding another line to the option.</p>

<p>I have a dropdownlist with the following:</p>

<pre><code>&lt;select id="fruit"&gt;    &lt;option value=""&gt;select here&lt;/option&gt;    &lt;option value="1"&gt;apple&lt;/option&gt;    &lt;option value="2"&gt;pineapple&lt;/option&gt;    &lt;option value="3"&gt;orange&lt;/option&gt;&lt;select&gt;

 $("#myList option:selected").text("pineapple");
 $("#myList option:selected").text("select here");
</code></pre>

<p>How can I select the option based upon the text?</p>
