我想添加属性到没有标识或类的表头中。它拥有的只是现场。我的代码在这里不起作用。我感谢任何帮助将属性添加到没有标识或类的<th>
$(th[field = "item_group_ID"]).attr('hidden', 'true');
或者是否有任何其他方式,我可以做到这一点?继承人表
<table id="dg" title="jaiko pogi " class="easyui-datagrid" style="width:980px;height:370px;"
url="show_biochem.php"
toolbar="#toolbar" pagination="true"
rownumbers="false" fitColumns="true" singleSelect="true" height="auto";>
<thead>
<tr>
<th field="item_group_ID" width="8">ID</th>
</tr>
</thead>
</table>
解决了它。我阅读文档,并发现有一个功能。无论如何感谢您的帮助
$('#dg').datagrid('hideColumn','item_group_ID');
感谢。该函数现在执行但仍然无法执行任何操作。我在这里错过了什么? – raymond
你想要做什么?如果你想隐藏元素,只需使用'.hide()'jQuery函数。 –
尝试过,仍然不会隐藏。 http://www.jeasyui.com/demo/main/index.php这是我正在使用的一个。 – raymond