开发者社区> 问答> 正文

求助关于根据选中的radio而获取同一行里面的所有td的值

求教,想根据选中的radio来获取该radio所在那一行里面的所有的td值(每个td里面的值要分别获取出来)
该怎么做呢?

 <c:forEach items="${logoutAccountForm.accountList}"
                                var="logoutList">
                                <tr height="55" class="table_centent_bj_color_b" >
                                    <td width="100" class=""><span class="radio_wrap">
                                            <input type="radio" id="xh" name="xh" value="" /> <label
                                            for="xh" class="check"></label>
                                    </span></td>
                                    <td width="350" class="" id="accNo"><p>${logoutList.accNo}
                                        </p></td>
                                    <td width="200" class="" id="custName"><p>${logoutList.customer.custName}
                                        </p></td>
                                    <td width="300" class="" id="openBank"><p>${logoutList.openbank}
                                        </p></td>
                                    <td width="250" class="" id="openDate"><p>${logoutList.openDate}
                                        </p></td>
                                </tr>
                            </c:forEach>

展开
收起
吴孟桥 2016-06-02 17:21:21 2452 0
1 条回答
写回答
取消 提交回答
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载