title: how to get the id of repeater item into a jquery
body: <p>How can I get the <code>id</code> of a textbox within the nested repeater using jQuery?</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var e = jQuery.noConflict();
      e(document).ready(function () {
          e("#&lt;%= datepicker.ClientID %&gt;, #datepicker").datepicker({
              changeMonth: true,
              changeYear: true
          });
      });
  &lt;/script&gt;
  
  &lt;asp:Repeater runat="server" ID="rpfollowup"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Repeater runat="server" ID="rpactivity" OnItemDataBound="rpactivity_ItemDataBound" &gt;
              &lt;ItemTemplate&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;asp:TextBox ID="Activities" runat="server" CssClass="span10"   Text='&lt;%#Eval("Activity")%&gt;'&gt;&lt;/asp:TextBox&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;asp:TextBox ID="datepicker" runat="server" CssClass="span10" ClientIDMode="Static" Text='&lt;%#Eval("Start_Date")%&gt;'&gt;&lt;/asp:TextBox&gt;&lt;/td&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:Repeater&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>I have reduced the code to avoid confusion.</p>
  
  <p>&lt;%= datepicker.ClientID %> gives red underline as it cannot detect the ID within the repeaters.
  Kindly give a solution. Thanks in advance</p>