title: JQuery datepicker is not working with masterpage in asp.net
body: <p>This is my <code>Masterpage</code> <strong>source code</strong></p>
  
  <pre><code>    &lt;%@ Page Title="" Language="C#" MasterPageFile="~/Usermaster.Master" AutoEventWireup="true"
      CodeBehind="ApproveLoanpage.aspx.cs" Inherits="WebLoanCalculator.ApproveLoanpage" %&gt;
  
  &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
  
  &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  </code></pre>
  
  <p><strong>code to bind by textbox ID</strong></p>
  
  <pre><code>$(function () {
              $("#&lt;%= txtCashAmt.ClientID %&gt;").datepicker({
              changeMonth: true,
              changeYear: true
          });
      });
  </code></pre>
  
  <p><strong>And Code to by by textbox class.</strong></p>
  
  <pre><code>$(function () {
                  $(".date").datepicker({
                  changeMonth: true,
                  changeYear: true
              });
          });
  &lt;/script&gt;
  
  &lt;table style="width: 100%"&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtCashAmt" runat="server" CssClass="date"&gt;&lt;/asp:TextBox&gt;
  &lt;asp:TextBox ID="txtCashAmt2" runat="server" CssClass="date"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &amp;nbsp;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p><strong>Explanation</strong> 
  here i have multiple <code>textbox</code> and i don't want to bind them by ID. I want to use of class to bind with <code>JQuery datepicker</code> by the textbox class like i have assigned <code>date</code> class to each and every textbox. </p>
  
  <p>the above code is working in normal <code>.aspx</code> page but when i am using this code in masterpage  then it is not working. this is my problem.please help me to bind <code>jquery datepicker</code> with <code>textbox</code> by class in <code>asp.net master page</code></p>
  
  <p><strong>After edit</strong></p>
  
  <p>I am getting error as below.</p>
  
  <p><strong>TypeError: $(...).datepicker is not a function</strong></p>
  
  <p>in browser console.</p>