how can i change selected value of drop list dynamically
<p>i want to pick the value from text box and then change the value of dropdown list according to that value     </p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;script&gt;
            function change()
            {
                var value = document.getElementById('text').value;
                document.getElementById("Model").selectedvalue = value
            }
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;asp:DropDownList ID="Model" AutoPostBack="false" runat="server" CssClass="styled"&gt;
            &lt;asp:ListItem Value="None"&gt;None&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Enum"&gt;Enum&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Sum"&gt;Sum&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Multi"&gt;Multi&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Xaxis"&gt;Xaxis&lt;/asp:ListItem&gt;
        &lt;/asp:DropDownList&gt;
        &lt;input id="text" type="text"/&gt;
        &lt;input type="button" onclick="change();"/&gt;
    &lt;/body&gt;
&lt;html&gt;
</code></pre>
