title: Get text value of span in repeater by using javascript or jquery
body: <p>i can't get value of span (or label) 
  here is my html code</p>
  
  <pre><code>&lt;asp:Repeater ID="rpt_district" runat="server" &gt;
              &lt;ItemTemplate&gt;
              &lt;tbody id='bodies'&gt;
  
                  &lt;tr&gt;
                  &lt;td&gt;
                      &lt;span id="district_id"&gt;&lt;%# Eval("DISTRICT_ID") %&gt;&lt;/span&gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;%# Eval("DISTRICT_NAME") %&gt;&lt;/td&gt;
                  &lt;td&gt;
                      &lt;asp:Label ID="lb_city_id" runat="server" Text='&lt;%# Eval("CITY_ID") %&gt;'&gt;&lt;/asp:Label&gt;
                  &lt;/td&gt;
                  &lt;td style="float:left; margin-left:5px;"&gt;
                      &lt;asp:CheckBox ID="cb_status" runat="server" onclick="javascript: return false;" /&gt;
                      &lt;asp:HiddenField ID="hf_status" Value='&lt;%# Eval("ENABLE") %&gt;' runat="server" /&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;div style="float:left; margin-left:4px;" &gt;
                          &lt;asp:ImageButton ID="ib_edit" runat="server" ImageUrl="~/Hinh/icons/Edit.png" ToolTip="Edit" /&gt;
                      &lt;/div&gt;
                      &lt;div style="float:left; margin-left:4px;"&gt;
                          &lt;asp:ImageButton ID="ib_delete" runat="server" ImageUrl="~/Hinh/icons/Trash.png" 
                                          ToolTip="Delete" CommandArgument='&lt;%# Eval("DISTRICT_ID") %&gt;'
                                          OnClientClick="getvalue(); return false;"/&gt;
  
                      &lt;/div&gt;
                  &lt;/td&gt;
                  &lt;/tr&gt;
  
  
              &lt;/tbody&gt;
              &lt;/ItemTemplate&gt;
              &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>i want to get value of district_id in span tag (or label is ok) by using javascript when clicking on imagebutton </p>
  
  <pre><code>function getvalue() {
      var thisspan = $('.district_id').eq(0);
      alert(thisspan);
  }
  </code></pre>
  
  <p>but it just get the value in first column be cause of ea(0)
  i'm just want to get value by using javascript or jquery not code behind
  thanks.....</p>