Selecting an option in a dropdown menu based on node value?
<p>Is there a way to set the value of a dropdown list in jQuery (or Javascript) based on the node value?</p>

<pre><code> &lt;select name="ddlProperty"&gt;
        &lt;option value="1" selected="selected"&gt;&lt;/option&gt;
        &lt;option value="2"&gt;Animal Kingdom&lt;/option&gt;
        &lt;option value="3"&gt;Epcot&lt;/option&gt;
        &lt;option value="4"&gt;Hollywood Studios&lt;/option&gt;
        &lt;option value="5"&gt;Magic Kingdom&lt;/option&gt;
        &lt;option value="6"&gt;Downtown Disney&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I'd need to set the option of Magic Kingdom, so something like:</p>

<pre><code>$("#ddlLocation").val("Magic Kingdom")
</code></pre>

<p>So that Magic Kingdom would become the selected item, that doesn't work as expected. Any ideas?</p>
