私は下の表を持っています
<table>
<thead>
<tr>
<th col="value2"></th>
</tr>
</thead>
<tbody>
<tr id="value1">
<td></td>
</tr>
</tbody
<table>
以下を使用して「value1」を取得します<tr>
"row_id": this.parentNode.getAttribute('id')
以下を使用して col 値を取得しようとしています<th>
が、null 値を返します。
"colName": this.getAttribute('col')
から col 属性値を正しく取得するにはどうすればよい<th>
ですか?