AnthonyChenny 2018-01-18 02:35 采纳率: 62.5%
浏览 1990
已采纳

easyui如何获得checkbox下选中的项

 <div id="top_country" >
                                    <div id="selected_country" style="border: 1px solid #E2F0F9;width:100%;height:200px;"> 
                                        <table id="dg"  class="easyui-datagrid"  style="font-size:10px;height: 200px;"
                                          url="<%=basePath%>region/queryallCountry" rownumbers="true" fitColumns="true">
                                            <thead> 
                                                <tr> 
                                                    <th hidden="true" field="uuid" width="100px">uuid</th>  
                                                    <th field="ck" checkbox=true></th>
                                                    <th field="countryname" width="100px"  halign="center">国家列表</th>  

                                                </tr> 
                                            </thead> 
                                            <tbody>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>![图片说明](https://img-ask.csdn.net/upload/201801/18/1516242896_612248.jpg)

                                想把选中的项append到右边
  • 写回答

7条回答 默认 最新

  • IT迷你白 2018-01-18 02:54
    关注

    我看你这个是在Datagrid上加入复选按钮 那就调用datagrid 的API $("#dg").datagrid("getSelections")这个会返回所有rows
    或者是 1.3版本之后的 $("#dg").datagrid("getChecked") 这个方法也是返回所有选中的行 我一般用第一个

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失