SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]");
RAW Paste Data
Top