首页 > 后端开发 > php教程 > checkbox-html 结合 php,如何easyui的datagrid进行多行修改数据?

checkbox-html 结合 php,如何easyui的datagrid进行多行修改数据?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-02 11:33:36
原创
1072 人浏览过

checkboxphpeasyuidatagrid批处理

html页面用的easyui-datagrid,然后是

<code>    <table id="dg">                <thead>                                <form id="fm">                                                <tr>                                                            <th field="ck" checkbox="true"></th>                                                            <th field="name" width="50">姓名</th>                                                            <th field="profit" width="50">昨日收益</th>                                                </tr>                              </form>                </thead>  </table>    <script type="text/javascript">        var url;        function edit(){            var ids = [];            var row = $('#dg').datagrid('getSelections');                        for(var i = 0; i<row.length;i++){                                    var rows = row[i];                                    ids.push(rows);                        }                url = '../php/everyday.php?o=edit&uid='+row.uid;        $('#fm').form('submit',{               url: url,               onSubmit: function(){                   return $(this).form('validate');               },               success: function(result){                   $('#dg').datagrid('reload');               }            });                             }    </script></code>
登录后复制

1.如何在html中获取 多行选中后的 id。
2.获取值后怎么把多个id值传到php。
3.php如何对这些id进行处理(批量处理)。

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板