I have ASP.Net DropDownList bind using c#. I want to change selected value of DropDownList on Button Click Event using JQuery.
<asp:DropDownList ID="ddlSubject" runat="server" >
</asp:DropDownList>
I have tried this but did not work:
$( '#< %=ddlSubject.ClientID %> option:selected' ).val( "5" );