dropdown is not working in jQuery
<p>I want to redirect the selected value to respective URL's.
but when I select any value it will redirect to specific URL but shows the same text as "My account" for any selected value.</p>

<p>How can I set the text dynamically on select?</p>

<p><strong>html</strong></p>

<pre><code>&lt;li style="margin:-3px 0 0 0;"&gt;
      &lt;select id="myacc"&gt;
          &lt;option value="1" id="myacc_link" &gt;&lt;a href="/Myaccount.asp"&gt;My account&lt;/a&gt; &lt;/option&gt;
          &lt;option value="2" id="sign_btn" &gt;&lt;a href="/login.asp"&gt;Sign IN&lt;/a&gt;&lt;/option&gt;
          &lt;option value="3" id="out_btn" &gt;&lt;a href="/login.asp"&gt;Sign Out&lt;/a&gt;&lt;/option&gt;
          &lt;option value="4" id="o_btn" &gt;&lt;a href="/Myaccount.asp"&gt;Orders&lt;/a&gt;&lt;/option&gt;
      &lt;/select&gt;
&lt;/li&gt;
</code></pre>

<p><strong>jQuery</strong></p>

<pre><code>$(function () {
    // bind change event to select
    $('#myacc').bind('change', function () {

        var op_val = $("#myacc option:selected").text();

        if (url == 1) { // require a URL
            window.location = 'http://xcome.sewuk.servertrust.com/Myaccount.asp'; // redirect

            var nval = "My account"
            $("#myacc option:selected").text(nval);



        } else if (url == 2) {
            window.location = 'http://xcome.sewuk.servertrust.com/login.asp';
            var nval = "Sign In"
            $("#myacc option:selected").text(nval);
            /* $("#sign_btn").text("Sign In"); */
        } else if (url == 3) {
            window.location = 'http://xcome.sewuk.servertrust.com/login.asp';


            $("#out_btn").text("Sign Out");

        } else if (url == 4) {
            window.location = 'http://xcome.sewuk.servertrust.com/ShoppingCart.asp';
            var url1 = $(this).text();

            $("#o_btn").text("Orders");

        }

        return false;
    });
</code></pre>

<p>Above is the code I am trying to implement but it's not working.</p>
