i want to add an attribute to a table header without id or class. all it has is field. my code here does not work. i appreciate any help
$(th[field = "item_group_ID"]).attr('hidden', 'true');
or is there any other way i can do this? heres the table
<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>
solved it. i read the documentation and turns out there is a function for this. anyway thanks for the help
$('#dg').datagrid('hideColumn','item_group_ID');