JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td>
<span column="17" style="cursor:pointer"></span> BMW
</td>
</tr>
</table>
JavaScript
$('span[column="17"]').get(0).nextSibling.nodeValue = 'Volvo';
<table>
<tr>
<td>
<span column="17" style="cursor:pointer"></span> BMW
</td>
</tr>
</table>
$('span[column="17"]').get(0).nextSibling.nodeValue = 'Volvo';