JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td>
            <select>
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
        </td>
        <td>
            <select>
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
        </td>
    </tr>
    <tr>
        <td>
            <select>
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
        </td>
        <td>
            <select>
                <option value="1">One</option>
                <option value="2">Two</option>
            </select>
        </td>
    </tr>
</table>

JavaScript

$("td select").on("change", function() {
    var value = this.value;
    var $cell = $(this).parent();
    var $row = $cell.parent();
    alert("Selected ["+value+"] in cell ["+$cell.index()+"] of row ["+$row.index()+"]");
});