JSFiddle - React, Tailwind, and code Playground
HTML
<div id="main">
</div>
CSS
th{
background-color:gray;
}
JavaScript
var header='<th id="tblHeader_1" style="width:80px;"><span>Id</span></th><th class="headerSortDown" id="tblHeader_2" style="width: 100px;"><span>Title</span></th><th class="headerSortDown" id="tblHeader_3" style="width:100px;"><span>Adress</span></th>';
var currentwidth = 100;
$('#main').append(header).find('th:last').css('background-color','red');
//Increase last th width
$('#main').find('th:last').css('width',currentwidth + 50 + 'px');
//alert($header.text());