Change the selected value in a drop down using jQuery and javascript
<p>I have to assign the value in a repeater column in such a way that upon assignment, the value in the repeater column becomes the current selection in the drop down.</p>

<p>I have the correct value to assign in <code>$('#myname_' + rowIndex).text()</code>, but when I assign this value to the id.value of the dropdown - as shown below - the assignment has no effect. What am I doing wrong.</p>

<pre><code>$("ctl00_ContentPlaceHolder1_myname").value = $('#myname_' + rowIndex).text();
</code></pre>
