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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:33:36
Original
1072 people have browsed it

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>
Copy after login

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

Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template