JSFiddle - React, Tailwind, and code Playground

by kman007_us

HTML

<table>
<tr id='row'>
  <td class='foo'>fizzbuzz</td>
</tr>
</table>

CoffeeScript

extractRowValue = (row, className) ->
  $(row).children('td.' + className).html()
  
row = document.getElementById('row')
  
console.log (extractRowValue row, 'foo')