I got the value of dropdown and show into a label its work fine but this value show after post it become hide when I used a input button it work fine no problem but when I used server button the value should be hide. I know my problem is created due to the post back .please help me how I solved it following my code.
Htm code.
<asp:Button ID="btnShow" runat="server" Text="data" style="width: 57px;"
" OnClientClick="reciptno()"/>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
Jquery code:
function reciptno() {
var test = $('#DropDownList2 option:last-child').text();
$('#Label1').text('Value Get' + test);
};
Please help me how I solved that problem.