選択した行に基づいてデータグリッドに別のデータセットを設定する新しいボタンを追加しました。
ここにボタンがあります:
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」に変更するにはどうすればよいですか? 前もって感謝します