JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td><input class="Agefrom" type="text"/></td>
        <td><input class="Ageto" type="text"/></td>
        <td><input class="coverage" type="text"/></td>
        <td><input class="premium" type="text"/></td>
    </tr>
</table>

JavaScript

$(document).ready(function(){
    $('[class^=A],.coverage,.premium').on('change', function () {
        alert('do something');
    });
});