JSFiddle - React, Tailwind, and code Playground
HTML
<input style="width:1.9500000000000002em;" maxlength="3" tabindex="1" class="inputBox" type="text">
JavaScript
$('.inputBox').each(function(index) {
var stylestemp = $(this).attr('style').split(';');
var styles = {};
var c = '';
for (var x = 0, l = stylestemp.length; x < l; x++) {
c = stylestemp[x].split(':');
styles[$.trim(c[0])] = $.trim(c[1]);
}
console.log(styles.width);
});