JSFiddle - React, Tailwind, and code Playground

HTML

<table id="choose-address-table" class="ui-widget ui-widget-content">
  <thead>
    <tr class="ui-widget-header ">
      <th>Name/Nr.</th>
      <th>Street</th>
      <th>Town</th>
      <th>Postcode</th>
      <th>Country</th>
      <th>Options</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="nr"><span>50</span>

      </td>
      <td>Some Street 1</td>
      <td>Glasgow</td>
      <td>G0 0XX</td>
      <td>United Kingdom</td>
      <td>
        <button type="button" class="use-address">Use</button>
      </td>
    </tr>
    <tr>
      <td class="nr">49</td>
      <td>Some Street 2</td>
      <td>Glasgow</td>
      <td>G0 0XX</td>
      <td>United Kingdom</td>
      <td>
          <button type="button" class="use-address">Use</button>
      </td>
    </tr>
  </tbody>
</table>

JavaScript

$(".use-address").click(function () {
  var id = $(this).closest("tr").find(".nr").text();
  alert(id);
});