How to get the server control implementation idea in jquery

  • 2020-05-19 04:40:15
  • OfStack

In the jquery
 
$("#<%=StoreName.ClientID %>").focus(function() { 
$("#<%=Label5.ClientID %>").val(" Please enter the real store name "); 
$("#<%=Label5.ClientID %>").css("color", "#666"); 
}); 

In the html
 
<table> 
<tr> 
<td> 
 Store name:  
</td> 
<td> 
<asp:TextBox ID="StoreName" runat="server"></asp:TextBox> 
</td> 
<td> 
<asp:Label ID="Label5" runat="server" Text="  The actual name of the store, 0-10 A word. (required) "></asp:Label>
</td> 
</tr> 
</table> 

Related articles: