var tdScore = "";
var LblNd_Cde = "";
$("#divContentTable").find("tr").each(function () {
$(this).find("td input").each(function () {
var id = $(this).attr("id");
if (id.indexOf("chk") > -1 && $(this).is(":checked")) {
cnt++;
$(this).closest("tr").each(function () {
$(this).find("td").each(function () {
var idTd = $(this).attr("id");
if (idTd.indexOf("tdScore") > -1)
tdScore = $(this).text();
});
$(this).find("td span").each(function () {
LblNd_Cde = $(this).text();
});
});
}
});
});
<table class="TblNoBorder" style="TABLE-LAYOUT: fixed; width:200px" id="divContentTable">
<colgroup>
<col width="30px" />
<col width="170px" />
</colgroup>
<asp:repeater id="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td id="tdNd_Cde" class="ListCode">
<input type="checkbox" id="chk" no_onclick="checkboxEvent(this);" NAME="chk"">
<asp:Label ID="LblNd_Cde" Runat="server" text='<%#DataBinder.Eval(Container.DataItem,"COD_GB2")%>' style="display:none"></asp:Label>
</td>
<td id="tdScore" runat="server" class="ListText"><%#DataBinder.Eval(Container.DataItem,"COD_NAM")%></td>
</tr>
</ItemTemplate>
</asp:repeater>
</table>
'IT > jquery' 카테고리의 다른 글
jquery ComboBox Selected Set (0) | 2017.02.26 |
---|---|
jquery find each 거꾸로 (0) | 2017.01.03 |
table 안의 라디오버튼 하나씩 체크 (0) | 2016.12.15 |
file 등록 후 img 미리보기 (0) | 2016.12.14 |
콤보박스 텍스트 값 (0) | 2015.11.20 |