87,907
社区成员
发帖
与我相关
我的任务
分享
function getRadio(){
$(document).ready(function(){
$('#tab input').each(function(){
var a = $(this).is(':checked');
if(a){
var Objmsg = $(this).parent().nextAll('td:first');
Objmsg.each(function(){
msgid=$(this).text();
});
alert(msgid);
}
});
});
}
<s:from action="gotoupdate" theme="simple" id="updatemessage">
<s:iterator value="#request.pmlist" status="st" id='listid'>
<tr class="a1" style="border-bottom: 2px solid #9AC3E3;">
<td width="21px"><input name="radio" type="radio" value=""/></td>
<td width="22px"><s:property value="msg_id"/></td>
<td width="80px"> <s:property value="stype"/></td>
<td width="80px"><s:property value="lan"/></td>
<td width="52px"><s:property value="msg_type"/></td>
<td width="250px"><s:property value="question_describe"/></td>
<td width="250px"><s:property value="question_analyse"/></td>
<td width="275px"><s:property value="answer"/></td>
<td width="49.5px"><s:property value="ur_id"/></td>
<td width="58.5px"><s:property value="question_type"/></td>
<td width="70px"><s:property value="question_person"/></td>
<td width="70px"><s:property value="phone"/></td>
<td width="60px"><s:property value="begin_time"/></td>
<td width="60px"><s:property value="by_person"/></td>
<td width="60px"><s:property value="iphone"/></td>
<td width="60px"><s:property value="end_time"/></td>
<td width="54px"><s:property value="by_system"/></td>
<td width="58px"><s:property value="question_emergency"/></td>
<td width="58px"><s:property value="responsibility"/></td>
</tr>
</s:iterator>
<input type="submit" id="updatemsg" onclick="getRadio();"
style="width:80px;position:absolute;top:485px;left:290px" value="处理">
</s:form>
//给某个页面元素赋值
document.getElementById("getid").value=msgid ;
<s:hidden name="updatemessage.msg_id" id="getid"></s:hidden>