i have a div that that's hide , after TextChange (blur) event div be show with jquery . but when i click on asp:Button (postback) , div be hide again ...! how to prevent it , this mad me made .
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm8.aspx.cs" Inherits="test.WebForm8" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title><style type="text/css">
.hide {
display: none;
}
.show {
display: block;
}
</style><script src="Scripts/jquery-2.0.2.min.js"></script><script type="text/javascript">
$(document).ready(function () {
$("#<%=TextBox1.ClientID%>").blur(function () {
$("#pDiv").removeClass('hide').addClass('show');
$("#<%=txt1.ClientID%>").val("yes");
});
});</script></head><body><form id="form1" runat="server"><div><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /><div id="pDiv" class="hide"><asp:TextBox ID="txt1" runat="server" BackColor="Transparent" BorderStyle="None"></asp:TextBox></div><br /><asp:Button ID="sumbit" runat="server" Text="sumbit" /></div></form></body></html>please .