How to put selected element in dropdown by text, index or value with jQuery?
<p>I have a select element with this structure:</p>

<pre><code>&lt;div class="ddl"&gt;
    &lt;select&gt;
        &lt;option selected value="select"&gt;Select&lt;/option&gt;
        &lt;option value="T"&gt;Toyota&lt;/option&gt;
        &lt;option value="P"&gt;Porsche&lt;/option&gt;
        &lt;option value="N"&gt;Nissan&lt;/option&gt;
        &lt;option value="V"&gt;Volkswagen&lt;/option&gt;
    &lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>And there is no ID of the select element to pass it to the jQuery selector, just the parent class of the div.</p>

<p>How can I put any of these elements as the selected element by text, index or value?</p>
