JSFiddle - React, Tailwind, and code Playground

by Lakshman Kambam

HTML

<form>
    <input type="text" id="input" />
    <button id="btn">increase text and see the width of input, button</button>    
</form>

JavaScript

var btnwidth = $("#btn").width();
$("#input").css("width",btnwidth);