【发布时间】:2013-07-31 10:51:15
【问题描述】:
我正在使用easyui datagrid
我添加了一个新按钮,该按钮将根据您选择的行使用另一组数据填充数据网格。
这是按钮:
a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="view-breakdown()">View Breakdown</a>
这是我的桌子:
<table id="dg" title="My Users" class="easyui-datagrid" style="width:980px;height:370px;"
url="get_users.php"
toolbar="#toolbar" pagination="true"
rownumbers="true" fitColumns="true" singleSelect="true" height="auto";>
<thead>
<tr>
<th field="item_group_desc" width="50">item description</th>
</tr>
</thead>
</table>
我希望函数 view_breakdown() 获取 item_group_desc 的值并将表格的 url 更改为“breakdown.php” 我怎样才能做到这一点?提前谢谢
【问题讨论】:
标签: jquery-easyui