title: How to apply jquery datepicker to textbox in gridview in masterpage
body: <p>I have <strong>grid view</strong> in <strong>update panel</strong>, in grid view there are  multiple rows with textboxes, I have arrange the code in such a way that when i click on link button , the rows of the grid view will increase, but problem is that when i want to apply jquery datepicker to txtDate textbox, its working for first row text box  , but when i click on link button as rows increases in grid view , the date picker functionality is not working....
  Here my code is..</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  
      $(document).ready(function () {
  
          $("[id$=txtDate]").datepicker();
      });
      &lt;/script&gt;
       &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
        &lt;Scripts&gt;
            &lt;asp:ScriptReference Path="~/Scripts/jquery-2.0.3.js" /&gt;
            &lt;asp:ScriptReference Path="~/Scripts/jquery-ui-1.10.3.js" /&gt;
        &lt;/Scripts&gt;
      &lt;/asp:ScriptManager&gt; 
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" &gt;
          &lt;ContentTemplate&gt;
         &lt;asp:gridview ID="Gridview1" runat="server" ShowFooter="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"&gt;
           &lt;Columns&gt;
          &lt;asp:BoundField DataField="RowNumber" HeaderText="Row Number" /&gt;
            &lt;asp:TemplateField HeaderText="First Name"&gt;
            &lt;ItemTemplate&gt;
            &lt;asp:TextBox ID="txtFirstName" runat="server"&gt;&lt;/asp:TextBox&gt;
            &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
            &lt;asp:TemplateField HeaderText="Last Name"&gt;
             &lt;ItemTemplate&gt;
                &lt;asp:TextBox ID="txtLastName" runat="server"&gt;&lt;/asp:TextBox&gt;
                  &lt;/ItemTemplate&gt;
             &lt;/asp:TemplateField&gt;
              &lt;asp:TemplateField HeaderText="Date"&gt;
              &lt;ItemTemplate&gt;
            &lt;asp:TextBox ID="txtDate" runat="server" AutoPostBack="true"&gt;
  
            &lt;/asp:TextBox&gt;
  
             &lt;/ItemTemplate&gt;&lt;/asp:TemplateField&gt;
            &lt;/Columns&gt;
  
          &lt;/asp:gridview&gt;
                &lt;asp:LinkButton ID="lnkMore" runat="server" Text="More(&gt;&gt;)" OnClick="lnkMore_Click"&gt;&lt;/asp:LinkButton&gt;
              &amp;nbsp;&amp;nbsp;
                 &lt;asp:LinkButton ID="lnkLess" runat="server" Text="Less(&lt;&lt;)" OnClick="lnkLess_Click"&gt;&lt;/asp:LinkButton&gt;
               &lt;/ContentTemplate&gt;&lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>pls help me..</p>