SelectedIndexChanged event not firing with OnChange method in JavaScript
<p>Please help me with a problem I'm having with a <code>DropDownList</code>. I'm using the JavaScript "onchange" method to get the DropDownList's selected value. I can get the value, but the <code>OnSelectedIndexChanged</code> event not firing. Hopefully someone can help me. My JavaScript function for getting selected value is:</p>

<pre><code> &lt;script type="text/javascript" language="javascript"&gt;
    function showAddress_Byamit()
    { 
         var e = document.getElementById("TabC_tp1_ddlcountry");
         var country = e.options[e.selectedIndex].text;
    }
 &lt;/Script&gt;

&lt;asp:DropDownList ID="ddlcountry" runat="server" AutoPostBack="True" 
     Height="20px" EnableViewState="true"  TabIndex="4"  
     OnSelectedIndexChanged="ddlcountry_SelectedIndexChanged" 
     onchange="showAddress_Byamit();return false" Width="100px" &gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>The problem is that the <code>"ddlcountry_SelectedIndexChanged"</code> method is not called.</p>

<p>In the codebehind I have added the <code>Onchange</code> event as follows:</p>

<pre><code>  ddlcountry.Attributes.Add("onchange", "showAddress_Byamit(); return false");   
</code></pre>
