jquery option text selector problem
<pre><code>&lt;select id="name"&gt;
 &lt;option value="1005"&gt;peter&lt;/option&gt;
 &lt;option value="2056" selected="selected"&gt;shan&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>how to set option's text=peter selected?<br>
like this <code>$('#name option[text=peter]').attr('selected',true)</code>;</p>
