JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td id='first'>10</td>
<td id='second'>15</td>
<td id='diff>I want the difference of first and second here</td>
</tr>
</table>
JavaScript
jQuery(document).ready(function($) {
let first_= jQuery('#first','/^[0-9]*$/' ).text();
let second_ = jQuery('#second').html();
let diff = first_ - second_ ;
$('#diff').html(diff)
});