JSFiddle - React, Tailwind, and code Playground

by isherwood

HTML

<table id="personal-info-view" class="additional-info-listing" summary="Personal Details">
    <tbody>
        <tr>
            <th scope="row">Birthday</th>
            <td>October 21</td>
        </tr>
        <tr>
            <th scope="row">Marital Status</th>
            <td>Single</td>
        </tr>
    </tbody>
</table>

JavaScript

var text = document.getElementById('personal-info-view').children[0].children[0].children[1].innerHTML;

console.log(text);