JSFiddle - React, Tailwind, and code Playground

HTML

<div style="border:solid #000 2px;overflow:hidden;width:250px;height:10px" id="stylediv"></div>

JavaScript

$(document).ready(function()
                  {
                      alert($("#stylediv").attr('style'));
                  });