Home >Backend Development >PHP Tutorial >checkbox-html 结合 php,如何easyui的datagrid进行多行修改数据?

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:33:361079browse

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进行处理(批量处理)。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn