JSFiddle - React, Tailwind, and code Playground

by deepak sisodiya

HTML

<div id="div1" style="height:100px;width:300px;padding:10px;margin:3px;border:1px solid blue;background-color:lightblue;"></div>
<br>
<button>Resize div</button>

JavaScript

// jquery width() and height() method to set the width and height 

$("button").click(function () {
    $("#div1").width(500).height(500);
});