我如何使用我的id表更改jQuery中的th值?我想獲得我的價值,並在點擊按鈕時更改它,但我不知道如何獲得th屬性。jquery更改th值
<div class="col-md-2 col-md-offset-1">
<div class="panel panel-default">
<table id="table1" class="table">
<thead>
<th class="text-center">My header</th>
</thead>
<tbody>
<tr>
<td>Category<input type="checkbox"/></td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<button type="button" class="btn btn-danger">Choose</button>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
'$('#tableid')。find('thead')' – guradio