Jquery to retrieve and set selected index value of html select element
<p>I am attempting to retrieve and set the selected value of a select element (drop down list) with Jquery.</p>

<p>for retrievel i have tried <code>$("#myId").find(':selected').val()</code>, as well as <code>$("#myId").val()</code> but both return undefined.</p>

<p>Any insight into this problem would be much appreciated.</p>

<p>thanks in advance</p>
