Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $('#<%= myTextBox.ClientID %>')
  2.  
  3. $('[id$=myTextBox]') // id which ends with the text 'myTextBox'
  4.  
  5. $('[id*=myTextBox]') // id which contains the text 'myTextBox'
  6.  
  7. <asp:TextBox runat="server" ID="myTextBox" CssClass="myclass" /> //add CssClass
  8.  
  9. $('.myclass') //selector
  10.  
  11. <asp:TextBox runat="server" ID="myTextBox" ClientIDMode="Static" /> //add ClientIDMode
  12.  
  13. $('#myTextBox') //use the normal ID selector
  14.  
  15. <asp:TextBox ID="txtSalesInvoiceDate" runat="server" />
  16.  
  17. var invDate = $("input[name=txtSalesInvoiceDate]");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement