JSFiddle - React, Tailwind, and code Playground

HTML

<table border=1 id="parent">
    <tr>
        <td></td>
        <td>aa</td>
        <td>1111111</td>
        <td>ccccccccccc</td>
    </tr>
</table>

CSS

table
{
    width: 400px;
}

table td
{
    width: 25%;
}

JavaScript

$("#parent td").each(function() {
 
     
     if ($(this).text() == ''){
         var val=$(this).val();
        //alert(len);
     $(this).remove();
     
         
     }

});
var len=$("#parent td").length;
         var wit=100/len;
     //wit=wit+"%";
$("table td").width(wit + "%");