jquey点击table行 获取行数据 赋值到其他控件

来源:互联网 发布:乎字的意义和用法 编辑:程序博客网 时间:2024/05/16 14:10
 
                    $("#tbody2 tr").each(function () {
                        var actionDT = $(this).children().eq(0).text();
                        var systemName = $(this).children().eq(1).text();
                        var parkName = $(this).children().eq(2).text();
                        var adminName = $(this).children().eq(3).text();
                        var actionName = $(this).children().eq(4).text();
                        $("#ActionDT").html(actionDT);
                        $("#SystemName").html(systemName);
                        $("#ParkName").html(parkName);
                        $("#AdminName").html(adminName);
                        $("#ActionName").html(actionName);
                    });
0 0