Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 1.04 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jquery WaterMark Textbox blink on postback
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head runat="server">
  4.     <title></title>
  5.     <script src="scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
  6.     <script src="scripts/jquery.watermark.min.js" type="text/javascript"></script>
  7.     <script type="text/javascript">
  8.          $(function () {
  9.             $("#txtEmail").watermark("Email Address");
  10.          });
  11.     </script>
  12. </head>
  13. <body>
  14.     <form id="form1" runat="server">
  15.     <div>
  16.         <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
  17.         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email Invalid"></asp:RequiredFieldValidator>
  18.         <asp:DropDownList ID="DropDownList1" runat="server"  AutoPostBack="true">
  19.             <asp:ListItem Text="One" />
  20.             <asp:ListItem Text="Two" />
  21.             <asp:ListItem Text="Three" />
  22.         </asp:DropDownList>
  23.         <asp:Button ID="Button1" runat="server" Text="Button" />
  24.     </div>
  25.     </form>
  26. </body>