1
텍스트 상자와 라디오 단추가있는 리피터가 있습니다. 팝업창 (jqmWindow)의 닫을 때 선택된 텍스트 박스 값을 얻고 싶습니다. 내가 선택한 라디오 버튼을 가지고Jquery 리피터에서 선택된 텍스트 상자의 값 가져 오기
$(".jqmClose").click(function() {
$(".clsRdSelectDaysToTransfer").each(function() {
if ($(this).find("input[type=radio][id*=rdSelectDaysToTransfer]").attr("checked")) {
alert($(this).find(".clsRptTxtDaysToTransfer input[type=text][id*=rptTxtDaysToTransfer]").val());
}
});
});
통해 여전히 텍스트 상자의 값을 얻기 위해 고군분투 :
<div class="jqmWindow" id="dialog" style="display: none;">
<table width="100%" border="0px" cellpadding="0px" cellspacing="0px">
<tr>
<td>
<asp:Repeater runat="server" ID="rptDaysInField" EnableViewState="false">
<HeaderTemplate>
<table id="tblPopUp" class="clsForm spacing" style="behavior: url(../script/tablehighlight.htc);"
hlcolor="#CECECE" slcolor="#CECECE">
<thead>
<tr class="header">
<td width="0%">
</td>
<td width="40%">
<MultiLang:LocalizedLiteral ID="LocalizedLiteral2" runat='server' Key="CoacheeName">
</MultiLang:LocalizedLiteral>
</td>
<td width="20%">
<MultiLang:LocalizedLiteral ID="LocalizedLiteral9" runat='server' Key="SessionDate">
</MultiLang:LocalizedLiteral>
</td>
<td width="10%">
<MultiLang:LocalizedLiteral ID="LocalizedLiteral10" runat='server' Key="# Days">
</MultiLang:LocalizedLiteral>
</td>
<td width="20%">
<MultiLang:LocalizedLiteral ID="LocalizedLiteral11" runat='server' Key="Days To Transfer">
</MultiLang:LocalizedLiteral>
</td>
<td width="10%">
</td>
</tr>
</thead>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="0%">
<asp:HiddenField ID="hidId" runat="server" Value='<%#(DataBinder.Eval(Container, "DataItem.CoacheeId"))%>' />
</td>
</td>
<td width="40%">
<%# DataBinder.Eval(Container, "DataItem.CoacheeName")%>
</td>
<td width="20%">
<%# DataBinder.Eval(Container, "DataItem.SessionDate")%>
</td>
<td width="10%">
<%# DataBinder.Eval(Container, "DataItem.Days")%>
</td>
<td width="20%">
<asp:TextBox ID="rptTxtDaysToTransfer" class="clsRptTxtDaysToTransfer" runat="server"></asp:TextBox>
</td>
<td width="10%">
<asp:RadioButton ID="rdSelectDaysToTransfer" class="clsRdSelectDaysToTransfer" runat="server" />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</td>
</tr>
</table>
<a href="#" class="jqmClose" id="dialogClose" style="float:right;">Close</a>
</div>
나는 jQuery 코드 아래 사용하고 있습니다.
텍스트 상자의 가치를 얻도록 도와주세요.
감사
당신을 사랑 피터 .. :) –