title: how to get label text inside repeater
body: <p>I am trying to get the text of a lable when someone clicks on a link button:</p>
  
  <p>this is my code :</p>
  
  <pre><code>   $(document).ready(function () {
  
          $('[id*="lnkbtn_Remove"]').click(function (event) {
              event.preventDefault();
  
              var id = $("span[id*=lbl_Reference]").text();
              alert(id); 
          });
      });
  </code></pre>
  
  <p>But this gets me all the reference in the reapter as I am using "*". Is there anyway to get the actual reference on the row it has been clicked. Here is my html:</p>
  
  <pre><code> &lt;asp:Repeater ID="rpt" runat="server" &gt;
                          &lt;ItemTemplate&gt;
                              &lt;div class="test"&gt;
                                  &lt;table&gt;
                                      &lt;tr&gt;
                                          &lt;td&gt;
                                              &lt;div style="width: 230px;"&gt;
                                                  &lt;asp:Label ID="lbl_Len" runat="server" CssClass="font_bold"&gt;&lt;/asp:Label&gt;
                                                  &lt;br /&gt;
                                                  &lt;asp:Label ID="lbl_Reference" runat="server"&gt;&lt;/asp:Label&gt;
                                              &lt;/div&gt;
                                          &lt;/td&gt;
                                          &lt;td align="left"&gt;
                                              &lt;div style="width: 80px;"&gt;
                                                  &lt;asp:LinkButton ID="lnkbtn_Remove" runat="server" CssClass="rpt_item_Remove"&gt;Remove&lt;/asp:LinkButton&gt;
                                              &lt;/div&gt;
                                          &lt;/td&gt;
  
                                      &lt;/tr&gt;
                                  &lt;/table&gt;
                              &lt;/div&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:Repeater&gt;
  </code></pre>